How to crop PDF margins using pdftk and /MediaBox

后端 未结 3 666
广开言路
广开言路 2021-02-09 05:17

I used pdftk to uncompress a PDF and then opened it as a text file.
I want to edit the /MediaBox field, which is in my case

/Me         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-09 05:48

    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 :-)

提交回复
热议问题