I have scanned some materials at 600 dpi, ~ 9.36x12.67 inches and prepared in PostScript (PS) format.
Now when I try to transform PS to PDF with Ghostscript (GS),
What worked for me:
gs -sDEVICE=pdfwrite -r720 -g4308x6066 -dPDFFitPage -o out.pdf in.pdf
The 4308x6066 is the number of pixels, the -r720 is the number of pixels per inch.
4308x6066
-r720
So here we have 720dpi, so for instance fo 5 inches, this will be 3600 pixels.