How to change Ghostscript output file (in printer spooler)

后端 未结 4 841
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-11 08:45

I am using Ghostscript to print a PDF by command line arguments. But it shows the printed document\'s name as Ghostscript output in printer spooler. I want to change it to a

4条回答
  •  孤街浪徒
    2020-12-11 09:22

    If the sPAPERSIZE switch is ignored, perhaps it is possible to force the page size by using the appropriate switches.

    The How to Use Ghostscript manual says in the section Choosing paper size:

    Otherwise you can set the page size using the pair of switches
    
        -dDEVICEWIDTHPOINTS=w -dDEVICEHEIGHTPOINTS=h 
    
    Where w be the desired paper width and h be the desired paper height in points (units of 1/72 of an inch).
    

    The section Appendix: Paper sizes known to Ghostscript, the A4 size is defined as w=595 and h=842.

提交回复
热议问题