Re: Add ViewerPrefs PrintScaling=none to pdf created by pcl6?

Ken Sharp <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.devel
Message-ID <[email protected]>
At 07:28 10/11/2014 -0500, Edward Mendelson wrote:


>be built into the source code that I use to build it. That should make 
>things simpler, I hope.

Yes that'll definitely be a simpler task, you just need to work out what 
the param_list should look like, and send it to the put_params method. If 
you can build a debug version of Ghostscript (not pcl6.exe, but 
gswin32.exe), then putting a breakpoint in gdev_pdf_put_params (gdevpdfp.c) 
would probably be illuminating, the line where it checks for a pdfmark.:

         code = param_read_string_array(plist, (param_name = "pdfmark"), &ppa);
         switch (code) {
             case 0:
                 code = pdfwrite_pdf_open_document(pdev);
                 if (code < 0)
                     return code;
                 code = pdfmark_process(pdev, &ppa);

You can look at the parameter list that results from your pdfmark in there 
and a stack trace will tell you how the code got there, that code will 
probably have some useful chunks for creating the parameter list in it.


                     Ken
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.