View Single Post
Old 02-23-2020, 04:16 PM   #325
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by nlundberg View Post
Thanks, pm sent!
I used two passes:

k2pdfopt -mode crop -t -cbox1,2 0,0,1s,1s -cbox3- 0in,0in,7.186in,7.65in -cbox3- 7.186in,0in,6.18in,7.65in source.pdf -o out1.pdf

k2pdfopt -mode crop -t -ac -as -w 7in -h 8in out1.pdf -o out2.pdf

This forces the output page size to be 7 x 8 inches. If you are okay with variable page sizes, you can remove the -w and -h options from the second pass.
willus is offline   Reply With Quote