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
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.