Path: csiph.com!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder7.news.weretis.net!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!buffer1.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail NNTP-Posting-Date: Sat, 30 Nov 2019 02:52:35 -0600 From: ken Newsgroups: comp.lang.postscript Subject: Re: How to use GNU GhostScript for PS to PCL6 conversion with CUPS Printing System in LINUX Date: Sat, 30 Nov 2019 08:52:34 -0000 Message-ID: References: <795eed89-05e2-4ac2-8c47-9848d7de6b1c@googlegroups.com> Reply-To: ken@spamcop.net MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit User-Agent: MicroPlanet-Gravity/3.0.4 X-Antivirus: Avast (VPS 191129-0, 29/11/2019), Outbound message X-Antivirus-Status: Clean Lines: 40 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-EXM2Que+XmTFPg8jX/DdJ9fMlc7HAfqBw1aJQkryN3035xgQLY/vX3Z/7HgsfVBO3ijO7xRuXeZCQxh!S7b75GfqRxEUZhOdXx3MkR2U7WbLEqJ7UwFrHaE+K5PkR7qfv4baSBryrMd6nTnNhiRmGF64iPGy!qAat8eEJuPRAD5lcOXc= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2467 Xref: csiph.com comp.lang.postscript:3478 In article <795eed89-05e2-4ac2-8c47-9848d7de6b1c@googlegroups.com>, pvrbre@gmail.com says... > My main requirement is as follows: > > How to give the user printed data (from printer) to cups (convert text/raster to postscript) and give as input to GhostScript (for ps to pcl6 conversion) then give the data to printer. > > i.e, > > text/raster data from printer --> PostScript --> PCL6 (converted PS to pcl6 using GhostScript) --> Printer. As I understand it, CUPS should do all of that for you. You really just need to configure CUPS properly for your printer. From the Ghostscript point of view you would do something like: gs -sDEVICE=pxlmono -o /path/out.pxl /path/input.ps or: gs -sDEVICE=pxlcolor -o /path/out.pxl /path/input.ps Note that it need not be PostScirpt, Ghostscript will equally well read PDF, and the family can read PCL/PXL/XPS as well. You would need to select the correct Ghostscript device, and that would depend on whether your printer supports color or not, and whether it supports PCL6 (PXL) or an earlier version of PCL such as PCL5. There are a number of devices built into Ghostscript, this: gs --help will list them. I can't tell you how to configure CUPS, that's a different problem altogether. Ken