Eric Sommerlade
Overview > Misc > Using ps2pdf on Windows

Using ps2pdf on Windows

I always wondered how to pass parameters to ps2pdf on windows and ended up with

Unknown paper size: ().

Unrecoverable error: stackunderflow in dup.

In the documentation it's so easy and on Linux it works like a charm. On Windows, however, the right way to set parameters is using a hash symbol: # instead of the equal sign =:

ps2pdf -sPAPERSIZE#a4 test.ps test.pdf.

I found this answer at the end of this thread and hope this post gives the solution some visibility....


(2010-02-05)