there are better ways to change the margin of a PDF:
- http://code.google.com/p/sopdf/
- http://pybrary.net/pyPdf/
- http://code.activestate.com/recipes/576837-crop-pdf-file-with-pypdf/
- for ghostscript see this page Cropping a PDF using Ghostscript 9.01
hope you found an answer to that since posting :-)