[Printing-architecture] Two more PDF CUPS filters: pstopdf and cpdftocps ("PostScript driver")
Till Kamppeter
till.kamppeter at gmail.com
Tue Aug 12 12:29:51 PDT 2008
Michael Sweet wrote:
> Till Kamppeter wrote:
>> Michael Sweet wrote:
>>> As for getting options from the PostScript data stream, today we
>>> can embed page size and duplex mode in the PDF document. Supporting
>>> other embedded features is not feasible, although applications can
>>> use the CUPS PS job ticket comments at the top of the file:
>>>
>>> %!PS-Adobe-3.0
>>> %cupsJobTicket: option=value ... option=value
>>> %cupsJobTicket: option=value ... option=value
>>> %cupsJobTicket: option=value ... option=value
>>> ... other PS comments
>>> %%EndComments
>>>
>>
>> What does CUPS exactly do when it encounters these %cupsJobTicket:
>> comments?
>
> It adds them as job template attributes (options) for the job.
>
> > Which part of CUPS is handling them?
>
> The scheduler (cupsd) scans application/postscript files for these
> comments.
>
> > How can one benefit from
>> them in a PDF printing workflow (PostScript -> PDF -> pdftopdf ->
>> pdftoraster ...)?
>
> We could update cupsd to do the same scan for application/pdf;
> PDF supports comments just like PostScript.
>
Good idea, please do it.
> > Do they have to be in the beginning of the PS file or
>> can they be anywhere?
>
> They have to be in the initial comment block, after the "%!PS-Adobe"
> line. The scheduler stops on the first line that does not begin
> with a "%".
>
Thank you for the info. Did not find anything about that in the
documentation.
Till
More information about the Printing-architecture
mailing list