How to output PRN file

Michael R Sweet msweet at apple.com
Mon Oct 27 10:56:22 PDT 2008


keens312 wrote:
>> keens312 wrote:
>>> Hi Michael,
>>>
>>> Is there a way to redirect output to a file rather than backend to printer.
>>>
>>> I need this file (the format printer knows) to debug.
>> Run:
>>
>>      cupsctl FileDevice=Yes
>>      lpadmin -p queuename -v file:///tmp/queuename.prn
>>
>> Then every job you print will go to /tmp/queuename.prn.
>>
>> If you want a new file for every job, look on the links page for
>> "Tea4CUPS" or similar backends that offer that kind of functionality.
>>
>> --
>> ______________________________________________________________________
>> Michael R Sweet                        Senior Printing System Engineer
>>
> 
> Hi Michael,
> 
> Yes it works.
> 
> One more question, I need the raster file (*.ras) generated by cgpdftoraster RIP filter. How can I do that?

PPD=/etc/cups/queueid.ppd /usr/libexec/cups/filter/cgpdftoraster job 
user title 1 "" /path/to/filename.pdf >filename.ras


-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups-devel mailing list