Specifying custom page size with Ghostscript

Written by James McDonald

February 18, 2015

you can’t do the following because the custom page size won’t exist on the system

ps2ps -sPAPERSIZE=A4 input.ps output.ps

This will work (this is 100×200 converted to points)

ps2ps -dDEVICEWIDTHPOINTS=283.46 -dDEVICEHEIGHTPOINTS=567 test.ps output.ps

Never mind this doesn’t seem to effect the resultant output… afaict



Submit a Comment

Your email address will not be published.

You May Also Like…


Zebra Printer Language http://labelary.com/viewer.html The above website has a page where you can enter ZPL and it...

PHP Iterators

Just came across a Youtube talk "Iterators in PHP" by Jake Smith published in 2014 that steps through the many...

PHP array_map Multiple Arrays

array_map can take multiple arrays. I like how it starts mapping through them starting at the first element of each...