I would like a software to edit Pdfs.

I have essentially margins on every page of the pdf I would like to take out before running it through OCR software. I would like to use free software.

They can not be programmatically removed to my knowledge.

  • Why do you need to remove margins if you are planning on running it through OCR software? Once it's converted to text via OCR, margins are irrelevant. Apr 12, 2018 at 22:21
  • The ocr is incorrectly rendering page creases and handwritten text in the margins as text.
    – William
    Apr 12, 2018 at 22:22
  • So, you want margins to be removed at fixed distances, for instance 3 centimeters on the left, 2 centimeters at the top, etc, right? No automatic margin size detection, right?
    – Nicolas Raoul
    Dec 10, 2018 at 10:53
  • @Nicholas yes that is correct
    – William
    Dec 10, 2018 at 13:44

3 Answers 3


K2pdfopt has the option to "remove margins" I just gave it a test works as expected


enter image description here


Latest word will open PDF files for editing, think the online version through office365 will as well. Or the Adobe Acrobat Pro version.

As far as programmatically, not sure on Windows but if the margins are consistent then pdftk can do it on a Linux system (hint - live disc or virtual machine)

  • How do you remove margins in word then?
    – William
    Feb 8, 2017 at 2:10
  • pdflabs.com/docs/pdftk-version-history PDFtk is available on Windows. Feb 8, 2017 at 7:50
  • How about a way to convert them to pngs and then back to a pdf?
    – William
    Feb 8, 2017 at 17:06
  • @SebastianSchulz that doesn't appear to let you do but a couple things like rotate the pdf and combine them
    – William
    Feb 8, 2017 at 17:12
  • I have down voted this because the only requirement was to remove margins which your software doesn't do.
    – William
    Apr 12, 2018 at 16:11

I just wanted to let you know that DeftPDF has a crop tool that can be used to crop specific parts of a PDF document. This means you can easily remove any unwanted areas from the document. Additionally, DeftPDF also has an OCR tool that can be used to recognize text in scanned documents or images, which could be useful to you after you crop the document. it's free to use! I hope this helps

disclosure: I'm a founder of DeftPDF.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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