Discussion:
How to use GNU GhostScript for PS to PCL6 conversion with CUPS Printing System in LINUX
(too old to reply)
p***@gmail.com
2019-11-29 10:42:47 UTC
Permalink
For my Printing System project i am using CUPS along with GhostScript in LINUX OS .I am using GNU GhostScript mainly for PS to PCL6 conversion.
But i don't know how to use GNU GhostScript along with CUPS Printing System.

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.


Please help me how to do the above flow, with GhostScript, CUPS printing system in LINUX.


Thank you so much for understanding my problem.


Regards,
pvrbre
ken
2019-11-30 08:52:34 UTC
Permalink
Post by p***@gmail.com
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
p***@gmail.com
2019-12-03 11:21:55 UTC
Permalink
Dear Ken,

Thank you so much for your help and for the quick response.

At least please suggest me any link to refer for Configuring CUPS and GhostScript in Ubuntu OS (any LINUX flavor).

Thank you so much in advance.

Regards,
pvrbre

Loading...