[Samba] naming the pdf output file

René Nieuwenhuizen R.Nieuwenhuizen at cpb.nl
Mon Nov 25 09:31:01 GMT 2002


Hubertus Hiden heeft geschreven:

 > Dear Folks,
 >
 > when creating a pdf  file with samba i use
 > /usr/bin/printpdf %s %U as the print command.
 > So far everything works fine and the pdf has the same name as the user.
 >
 > But is there any way to use the name of the print job as shown in the
 > print manager of windows ?
 > This would mean that when the user prints a file called A0029.xls the
 > output would be called A0029.pdf
 >
Assuming the printerdriver produces postscript you could actually
extract the title (%%Title: ..... ) using grep from the spoolfile (%s)
and use that as a basis for the pdfname.

-- 
René Nieuwenhuizen
Afdeling Informatietechnologie
Centraal Planbureau

Bezoekadres: Van Stolkweg 14, 2585 JR Den Haag
Postadres: Postbus 80510, 2508 GM Den Haag

T (070) 3383 342
F (070) 3383 350
I http://www.cpb.nl/nl/general/org/afdelingen/it/



--
================================================================================
Aan dit bericht kunnen geen rechten worden ontleend.
Het bericht is alleen bestemd voor de geadresseerde.
Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan
ons te melden en de inhoud van het bericht te vernietigen.

This message shall not constitute any obligations.
This message is intended solely for the addressee.
If you have received this message in error, please inform us immediately and
delete its contents.
================================================================================



More information about the samba mailing list