# Should I always specify -sPAPERSIZE=a4 when invoking ps2pdf for paper size other than A4?

When I compile a document with paper size other than A4 as follows:

\documentclass{scrbook}
\usepackage[A6paper]{geometry}

\begin{document}
something
\end{document}

using latex-dvips-ps2pdf steps, should I use -sPAPERSIZE=a4 switch when invoking ps2pdf?

I don't know why TeXnicCenter setup the output profile for ps2pdf with -sPAPERSIZE=a4 switch by default as follows.

ps2pdf -sPAPERSIZE=a4 -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile="%bm.pdf" -c save pop -f "%bm.ps"

-

Since you are using a KOMA Script class, you should try the pagesize document class option. It allows to specify the output driver for writing information about paper size into the document. The comprehensive manual has the necessary details.

-
Yes. Try without that switch and see what happens. –  Thorsten Donig Dec 4 '10 at 11:55
@xport When you use geometry the paper size is recorded in the ps file (via a \special command sent to the dvi) and used in the ps->pdf conversion. –  egreg Jun 2 '11 at 13:02