Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to convert A4-sized PS documents to PDF. I am using PS2PDF, but it clips off the right side of the (landscape) page. Some googling has revealed that ps2pdf always crops to letter-sized pages by default. I found the option -dEPSFitPage, but it doesn't seem to work on my PS; the output is still clipped. How can I make the output PDF be the correct size?

share|improve this question
1  
Could you post the ps file somewhere so we can try some things? –  terdon Aug 3 '13 at 17:22
    
I remember that for some landscape PS files I have to use the -dAutoRotatePages=/All option. Worth a try?! –  mpy Aug 3 '13 at 17:39
1  
@terdon - Sure, thanks! fazjaxton.net/files/LEDMatrix.ps –  FazJaxton Aug 3 '13 at 22:20
    
@mpy - I gave that a try, but it didn't help with clipping. –  FazJaxton Aug 3 '13 at 22:21
add comment

1 Answer

up vote 1 down vote accepted

You can use the -g switch in this way:

ps2pdf -g5950x8410 file.ps output.pdf

Add a 0 after the needed width and height. So, for instance, to have an A4 sized pdf page (595x841 points), you end up with 5950 and 8410 for width and height, respectively.

share|improve this answer
1  
For reference, here is a list of different paper sizes in points: gnu.org/software/gv/manual/html_node/… –  FazJaxton Aug 4 '13 at 14:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.