Add margins to pdf

I would like to be able to easily add 1 inch of right margins to a pdf selected in finder (to have more room to take notes on the sides). Is there any way to do this with KM, or are there any other tools that may be able to help?

Bumping this.

KM doesn't handle PDFs directly. Many other software apps (maybe even some online portals) can do that. There's commercial software and there's free software. I googled it, and there's some free software for macOS called GhostScript. Or you can buy Adobe Acrobat Pro.

If you get some software that can do this, I'm sure someone will help you write a macro that can automate the adding of margins to a document. But if they don't have the software, you will have to learn what the steps are and then someone here can help you automate those steps with KM.

1 Like

The easiest free way is to use Preview and "Print" the PDF as a PDF but to a custom page size -- see eg mac - How can I add a margin to all pages of a PDF document? - Super User

I've tried other methods, like GhostScript, but they've all mangled the PDF in some way. Paid tools may do a better job.

2 Likes

Every day your good answers amaze me. Like this one.

This is why I call him the Wonderful Wizard of Nige.

Where are you taking your notes?

I came up with a fancy workflow for this ages ago and then my preferred note taking app (at the time) Noteful (on the iPad) released a feature to resize pages (all or just selected) in PDFs the following week!

Your favourite note taking app might have something similar, or it might be worth trying a different app to get it.

1 Like

After some more research, I found the pdfcropmargins command line tool, which does the job pretty well. I made a macro to pass in the selected finder files as arguments.

This adds 2 inches of margin to the right side:
pdfcropmargins -o output.pdf -a4 0 0 -144 0 input.pdf

1 Like

That's one that I found could mangle the PDF -- IIRC it was mainly font substitution causing text block overlay (a general problem with PDF editors) and broken internal hyperlinks.

Neither of which might matter to you, but watch out just in case.

2 Likes