From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4896BF68.3080804@gmail.com> Date: Mon, 04 Aug 2008 10:35:52 +0200 From: Till Kamppeter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Printing-architecture] Two more PDF CUPS filters: pstopdf and cpdftocps ("PostScript driver") List-Id: Printing architecture under linux List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "printing-architecture@lists.linux-foundation.org" , Printing-japan , Lars Uebernickel , Michael Sweet , OTANI Koji , Hin-Tak Leung , Tobias Hoffmann Hi, to complete the PDF printing workflow there are two more, rather simple CUPS filters needed: pstopdf and cpdftocps. pstopdf ------- This filter kicks in if a legacy application emits its print jobs in PostScript. I started about something very simple, like the pstoraster and pstopxl wrapper scripts which come with Ghostscript, only that this wrapper will use "pdfwrite" as output device. This will at least work for apps which supply the options as job attributes (attributes for the CUPS library function to submit a job, or command line options for the "lpr" command). It is possible and legal that applications supply the options embedded in the PostScript data stream. For that options to work, the pstopdf filter needs an extension: It must read the PostScript data stream before feeding it into Ghostscript for conversion and whenever it finds a line like %%BeginFeature: