Re: Add ViewerPrefs PrintScaling=none to pdf created by pcl6?
Edward Mendelson <[email protected]>
| Newsgroups | gmane.comp.printing.ghostscript.devel |
|---|---|
| Message-ID | <[email protected]> |
Thank you, Ken. I’ll continue to work at this, and will file a bug report. For the purposes of this project, I don’t need to parse a command-line parameter: this build of pcl6 will be used for only one purpose, so the nopdfscaling option can be built into the source code that I use to build it. That should make things simpler, I hope. Thanks again for pointing me in the right direction. Edward Mendelson > > At 08:18 10/11/2014 +0000, Ken Sharp wrote: > >> If you want to add this youreself then you should look at the implementation of pdfmark in the PostScript interpreter (which is done in PostScript, see ghostpdl/gs/Resource/Init/gs_pdfwr.ps). You will see from there that the PostScript code builds an appropriate dictionary argument and then calls .pdfputparams to send the dictionary argument to the device. > > I forgot to point out that you can't create a PostScript dictionary from PCL either (this was intended to show you how to work out what kind of argument was needed by looking at the dictionary being provided by the PS interpreter), so you will need to look at the actual put_params code to see how to turn the dictionary PostScript argument into a param_list (which is supported in the PCL interpreter) and pass the param_list to the device's put_params method. > > > > _______________________________________________ gs-devel mailing list [email protected] http://ghostscript.com/cgi-bin/mailman/listinfo/gs-devel