Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #3483
| Newsgroups | comp.lang.postscript |
|---|---|
| Date | 2019-12-03 22:00 -0800 |
| References | <20069c05-36d5-4bb2-ac7e-4fb16b68ee4b@googlegroups.com> |
| Message-ID | <3814d186-8e45-47d5-9d2b-4333005d45e6@googlegroups.com> (permalink) |
| Subject | Re: Unable to view PJL data in .pcl when GhostScript is used to convert PostScript to PCL6 |
| From | luser droog <luser.droog@gmail.com> |
On Tuesday, December 3, 2019 at 5:18:49 AM UTC-6, pvr...@gmail.com wrote: > I am using GNU GhostScript for PostScript to PCL6 conversion in Ubuntu OS. > > The command is as follows: > > > Test Command 1: > > gs -o testoutpot.pxl -sDEVICE=pxlcolor test.ps > > The testoutpot.pxl file always contains 2 PJL data. > > @PJL SET RESOLUTION=600 > @PJL ENTER LANGUAGE = PCLXL > > > > Test Command 2: > > gs -sPAPERSIZE=a4 -o tst9.pxl -sDEVICE=pxlcolor prealse.ps > > > The tst9.pxl file always contains 2 PJL data. > > @PJL SET RESOLUTION=600 > @PJL ENTER LANGUAGE = PCLXL > > > Why always 2 PJL settings are irrespective of number of settings like (PAPERSIZE, PDFPassword , FirstPage ..etc) > > > Please help me how to get corresponding PJL data in the output pxl file. > > Also how can i give printer custom parameters to the Ghostscript as command line args. > > > Thank you so much for understanding my problem. > I find a specification for PCL6 here: https://www.undocprint.org/formats/page_description_languages/pcl_xl According to the 2.0 spec, section 1.5 Pages: > Pages have attributes that define and effect the real page received or viewed by > a person. For example, the size, type, source, and destination for the physical > page media are attributes that may be associated with a page. So it appears that setting the PAGESIZE may not cause a @PJL line because it's not a global parameter but a per-page parameter. So, I suspect that the settings are being used, but you may be looking in the wrong place to verify it. On page 51, under the BeginPage operator there are 2 examples: > Beginning a simple page. > ubyte ePortraitOrientation Orientation > ubyte eLetterPaper MediaSize > BeginPage > Beginning a page printing on Executive sized paper with duplexing enabled. > ubyte ePortraitOrientation Orientation > ubyte eExecPaper MediaSize > ubyte eDuplexVerticalBinding DuplexPageMode > BeginPage I'm not sure if these are always encoded as plain text, so it may still to be difficult to search for and verify. But it appears to me that you should be looking for a MediaSize parameter to the BeginPage operator. -droog
Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar
Unable to view PJL data in .pcl when GhostScript is used to convert PostScript to PCL6 pvrbre@gmail.com - 2019-12-03 03:18 -0800
Re: Unable to view PJL data in .pcl when GhostScript is used to convert PostScript to PCL6 Martin Leese <please@see.Web.for.e-mail.INVALID> - 2019-12-03 14:35 -0700
Re: Unable to view PJL data in .pcl when GhostScript is used to convert PostScript to PCL6 pvrbre@gmail.com - 2019-12-03 20:38 -0800
Re: Unable to view PJL data in .pcl when GhostScript is used to convert PostScript to PCL6 luser droog <luser.droog@gmail.com> - 2019-12-03 22:00 -0800
Re: Unable to view PJL data in .pcl when GhostScript is used to convert PostScript to PCL6 pvrbre@gmail.com - 2019-12-04 20:47 -0800
Re: Unable to view PJL data in .pcl when GhostScript is used to convert PostScript to PCL6 luser droog <luser.droog@gmail.com> - 2019-12-04 21:06 -0800
Re: Unable to view PJL data in .pcl when GhostScript is used to convert PostScript to PCL6 pvrbre@gmail.com - 2019-12-04 23:04 -0800
Re: Unable to view PJL data in .pcl when GhostScript is used to convert PostScript to PCL6 luser droog <luser.droog@gmail.com> - 2019-12-05 00:05 -0800
Re: Unable to view PJL data in .pcl when GhostScript is used to convert PostScript to PCL6 pvrbre@gmail.com - 2019-12-05 00:44 -0800
Re: Unable to view PJL data in .pcl when GhostScript is used to convert PostScript to PCL6 luser droog <luser.droog@gmail.com> - 2019-12-05 19:51 -0800
csiph-web