Christopher Odenbach heeft geschreven:
Hi,Great! If been running my own postscript analysis scripts for years now but this makes life a lot easier...
> when creating a pdf file with samba i useBetter: Use the %J parameter - you can find the jobname there. Then write a small script that calls printpdf and renames the output file. Remember quotes!
> /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.
Thanks for redirecting me at the documents again....
--
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.
================================================================================
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
