[Discuss] Print Command

Keith Alperin kalperin at mac.com
Thu Jan 5 10:56:47 EST 2006


Greetings!

I'm using mozilla in a server based application to convert web pages  
to pdfs via a virtual pdf printer on linux.  My pdf printer (the  
excellent cups-pdf) uses the print job name to construct the file  
name of the resulting pdf.  I would like to pass some information to  
the printer (such as the title of the web page) via the print command  
so that I can determine which pdf goes with which request.  My print  
command is:
	lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}

According the the lpr man page, I can use the -T option to specify a  
job name.  Is there anyway to include the -T option in my print  
command and include some identifying information from my web page?

Thank you in advance.  If this is the wrong list, and you can point  
me towards the correct list, then I would be very grateful.

Best,
Keith R. Alperin



More information about the Discuss mailing list