Changeset 678 for tea4cups

Show
Ignore:
Timestamp:
06/29/06 00:09:25 (18 years ago)
Author:
jerome
Message:

Now includes a real PDF generator.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/tea4cups.conf

    r675 r678  
    173173# remaining prehooks are still executed. 
    174174# 
    175 #prehook_pdf : cat $TEADATAFILE | su -c "lp -dPDFGenerator" $TEAUSERNAME 
    176175#posthook_0 : cat $TEADATAFILE >/tmp/$TEAJOBID.prn 
     176 
     177 
     178 
     179# Another example : a PDF generator which creates PDF documents 
     180# in the user's home directory under the names JOB-iiii.pdf  
     181# where iiii is the job id : 
     182# 
     183# Beware : using ~$TEAUSERNAME here doesn't work because the ~ is not expanded. 
     184# NB : for this to work you might have to print with 'lp -o raw' 
     185# 
     186# prehook_rawpdf : /bin/cat $TEADATAFILE | su $TEAUSERNAME -c "ps2pdf - `/usr/bin/getent passwd $TEAUSERNAME | /usr/bin/cut -f 6,6 -d :`/JOB-$TEAJOBID.pdf" 
    177187 
    178188 
     
    186196# value takes precedence 
    187197# 
    188 #posthook_0 : cat $TEADATAFILE >~$TEAUSERNAME/savejobs/$TEAJOBID.prn 
     198#posthook_0 : cat $TEADATAFILE >/tmp/$TEAUSERNAME-$TEAJOBID.prn 
    189199 
    190200 
     
    193203# so this particular hook doesn't get executed on this printer. 
    194204# 
    195 #prehook_pdf : 
     205#prehook_rawpdf : 
    196206 
    197207