wspr/pstool — pull request #20 by heindsight (2013-01-21 16:26:05+00:00)
Title: Use # instead of = for ps2pdf options in Windows.

Hi,

I couldn't get pstool to work under windows, because ps2pdf would fail with the error message: "**** Unable to open the initial device, quitting." Subsequently pdfcrop would also fail because its input file does not exist.

I eventually found this: http://ghostscript.com/doc/7.07/Use.htm#MS_Windows recommending the use of '#' instead of '=' for passing options to ghostscript via ps2pdf. Making this change and removing the quotes around the options for ps2pdf fixed the problem.

While searching for a solution, I found at least two reports of similar problems: http://tex.stackexchange.com/questions/60084/pstool-pdflatex-not-getting-pstool-to-work-latex-error-file-not-found and http://www.mrunix.de/forums/showthread.php?t=73761 (in German). I thought I'd submit the changes I made here, in case it is useful to anyone else.

Regards,
Heinrich Kruger