i created a ps-file with Matlab with the paper-format A2, in ghostview it looks fine! the conversion to pdf with ps2pdf -sPAPERSIZE=a2 file.ps does not work (error message: 'Unknown paper size: ().'), without the option -sPAPERSIZE=a2 i get only a part of the a2-picture on the a4 output!
(In reply to comment #0) > i created a ps-file with Matlab with the paper-format A2, in ghostview it looks > fine! > > the conversion to pdf with > > ps2pdf -sPAPERSIZE=a2 file.ps > > does not work (error message: 'Unknown paper size: ().'), without the option > -sPAPERSIZE=a2 i get only a part of the a2-picture on the a4 output! Please supply an example file which exhibits the problem.
Created attachment 6730 [details] this files does not work with: ps2pdf -sPAPERSIZE=a4 cpsd.ps this files does not work with: ps2pdf -sPAPERSIZE=a4 cpsd.ps
Windows command line interpreter doesn't accept '=' in the command line arguments. Use '#' instead. Because of the limitations of the Windows command line interpreter, optional arguments are not compatible with the one-argument call. In short, use: ps2pdf -sPAPERSIZE#a2 file.ps file.pdf Or use Ghostscript directly. No '#' quirk needed. gswin32c -sPAPERSIZE=a2 -sDEVICE=pdfwrite -o file.pdf -c .setpdfwrite -f file.ps