[Tex/LaTex] Margin changes in converting DVI to PDF

dvimarginspdf

I have a 1 inch top margin in all the pages that I have in my DVI file. When
I convert this to PDF however the top margin reduces! I am not sure why this is happening. Could someone tell me how to ensure a top margin of at least 1 inch in the PDF?

Best Answer

As Alexander Grahn suggested - instead of using dvipdf you could do it in two steps:

  1. Run dvips with the desired paper option, such as

    dvips -t a4 file.dvi
    
  2. Run ps2pdf with the desired paper option, it takes the same as gs aka ghostscript, such as

    ps2pdf -sPAPERSIZE=a4 file.ps
    

I recommend using pdfLaTeX for directly producing PDF without those conversions, it has further benefits for example its microtypographic capabilities.