/usr/share/doc/gadmin-samba/examples/gadmin-samba-pdf is in gadmin-samba 0.3.2-0ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | #!/bin/sh
### SAMBA Postscript to PDF Printing by Magnus Loef ############
### Use "printing = bsd" in smb.conf for this printer ##########
### Install client printers as "HP Color Laserjet PS" ##########
### Any postscript laserjet printer will do but select color ###
OUTDIR="/var/lib/samba/pdf-documents"
DATE=`date +%Y-%b-%d---%H.%M.%S`
/usr/bin/ps2pdf12 $1 $OUTDIR/$DATE.pdf
echo "$2 Created: $DATE.pdf" >> $OUTDIR/CreationLog.wri
rm -f $1
|