Penguin
Diff: SambaPDFPrinter
EditPageHistoryDiffInfoLikePages

Differences between version 2 and previous revision of SambaPDFPrinter.

Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History

Newer page: version 2 Last edited on Tuesday, April 8, 2003 9:42:01 am by GreigMcGill Revert
Older page: version 1 Last edited on Tuesday, April 8, 2003 9:40:04 am by GreigMcGill Revert
@@ -15,30 +15,30 @@
  :if=/usr/share/printconf/pdffilter: 
  
 Next, I created the pdffilter script as follows: 
  
-#!/bin/bash 
+\ #!/bin/bash%%%  
  
-DOMAIN="yourdomain.co.nz"  
-PDF=`which ps2pdf`  
-MUA=`which mutt`  
-BODY="/usr/share/printconf/body"  
-TEMPFILE1="/tmp/output.ps-$RANDOM"  
-TEMPFILE2="/tmp/output$RANDOM.pdf"  
-TEMPFILE3="/tmp/cmd$RANDOM.txt"  
-SUBJECT="PDF Output."  
-ADDRESS="`echo $1 | sed -e 's/-A//' | awk -F@ '{ print $1 }'`@$DOMAIN"  
-CMDLINE="`echo $*`" 
+DOMAIN="yourdomain.co.nz"%%%  
+PDF=`which ps2pdf`%%%  
+MUA=`which mutt`%%%  
+BODY="/usr/share/printconf/body"%%%  
+TEMPFILE1="/tmp/output.ps-$RANDOM"%%%  
+TEMPFILE2="/tmp/output$RANDOM.pdf"%%%  
+TEMPFILE3="/tmp/cmd$RANDOM.txt"%%%  
+SUBJECT="PDF Output."%%%  
+ADDRESS="`echo $1 | sed -e 's/-A//' | awk -F@ '{ print $1 }'`@$DOMAIN"%%%  
+CMDLINE="`echo $*`"%%%  
  
-echo $CMDLINE > $TEMPFILE3  
-cat > $TEMPFILE1  
-$PDF -dPDFSETTINGS=/prepress -sPAPERSIZE=a4 $TEMPFILE1 $TEMPFILE2 
+echo $CMDLINE > $TEMPFILE3%%%  
+cat > $TEMPFILE1%%%  
+$PDF -dPDFSETTINGS=/prepress -sPAPERSIZE=a4 $TEMPFILE1 $TEMPFILE2%%%  
  
-$MUA -a $TEMPFILE2 -s "$SUBJECT" $ADDRESS < $BODY 
+$MUA -a $TEMPFILE2 -s "$SUBJECT" $ADDRESS < $BODY%%%  
  
-rm -f $TEMPFILE1  
-rm -f $TEMPFILE2  
-rm -f $TEMPFILE3 
+rm -f $TEMPFILE1%%%  
+rm -f $TEMPFILE2%%%  
+rm -f $TEMPFILE3%%%  
  
 /usr/share/printconf/body is just the message you want to email your users. 
 Feel free to experiment with PDFSETTINGS, I have found the /prepress one seems to give the best quality output. 
  
The following authors of this page have not agreed to the WlugWikiLicense. As such copyright to all content on this page is retained by the original authors.
  • MarcelNoe
The following authors of this page have agreed to the WlugWikiLicense.

PHP Warning

lib/plugin/WlugLicense.php (In template 'html'):99: Warning: Invalid argument supplied for foreach()

lib/plugin/WlugLicense.php (In template 'html'):111: Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument

lib/plugin/WlugLicense.php (In template 'html'):111: Notice: Undefined variable: ignore_authors