I am trying to convert a text file in groff format to PDF, using the following command:
groff -Tps -dpaper=letter -P-letter -P-l -ms foo.ms | ps2pdf - output.pdf
The command works fine and outputs me a PDF file, but the paper size is "a4". I would like to change the paper size to "letter", which is the paper size I need for my document.
I've tried changing the "-dpaper" option to "letter" but that doesn't seem to have any effect on the paper size of the resulting PDF file. I have also tried changing the "-P-letter" option to "-P-usletter", but that hasn't worked either.
Is there a way to specify the paper size as "letter" when converting a groff file to PDF using groff and ps2pdf? Or are there any other steps I need to take to achieve this?