Quote:
Originally Posted by j.p.s
Worked great the very first run!
From time to time, I search the net for how to crop a PDF. It seems to be a common problem, and a wide variety of answers have been posted at a wide variety of sites. None of them have ever worked for me. This one does. I didn't even have any copy/paste errors. (It was a bit cruel not to also attach the file to the message.)
I was also in luck that the document I tried it on only needed a single crop specification. I have to confess to being completely confused as to how to specify cyclical groups of pages.
Does your example use the second group for all pages after the first?
How would one specify odd/even page cropping?
Thanks for a great script!
|
Helo, I'm happy it works for you. Thanks to your telling me I found there is a bug in the page cycling :-/ I fixed it now. For odd/even pages you'd do something like that (I guess you already knew but were irritated because it didn't work)
croppdf file.pdf 10 10 500 700 40 10 500 730
I didn't know one can attach files to posts

This time! (I had to rename it to croppdf.txt because it wouldn't let me upload it otherwise).
Hope it works better now!
(The cyclic thing works like that:
croppdf file.pdf <4 margins for 1st page> <4 margins for 2nd page> <4 margins for 3rd page> ... <4 margins for n-th page>
and the n+1-th page will start over with the margins from the 1st page again. hth)