View Single Post
Old 05-04-2020, 01:45 PM   #7
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,813
Karma: 103362673
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by Shohreh View Post
Thanks. I'll use it if nothing else is available.

I'd rather a single EXE than solutions based on Java or Python.

I can't figure out if cpdf can crop/trim margins. This just copies the input file as-is, with no change:
Code:
cpdf -page-info input.pdf 72-75
Page 72:
Label: 45
MediaBox: 0.000000 0.000000 534.000000 750.000000
CropBox: 43.200000 61.200000 472.800020 706.799990
BleedBox:
TrimBox: 42.000000 60.000000 474.000000 708.000000
ArtBox:
Rotation: 0

cpdf -crop "0mm 0mm 534mm 750mm" input.pdf -o out.pdf 72-75
I think you have a units mixup. 534mm is more than half a meter and 750mm is 3/4th meter.

The bare numbers are probably points (1/72nd inch).

Also 0 0 534 750 is no cropping. Try
cpdf -crop "100 100 400 600" nput.pdf -o out.pdf
That should be a severe crop.

If you really want mm and bare units is actually points, you need to multiply by 25.4/72
j.p.s is offline   Reply With Quote