View Single Post
Old 07-05-2014, 02:13 PM   #842
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 Smith-Corona View Post
...
So basically I want all the pages cropped as much as they can be with reference to the maximum text width found in the document (with column set to 1). Then to make all the pages that size, and have the font the same size throughout...
@Smith-Corona -- Welcome to MR! Thank you for the post. At this stage, k2pdfopt will not automatically do what you want (I think), i.e. scan the whole document and determine a single set of crop margins that will best encompass every page so that each page remains at the same scale. You can kind of do this manually using the -cbox command-line option, though--you just have to figure out the right values to use with -cbox. e.g.

k2pdfopt -cbox 0.1s,0.1s,0.8s,0.8s -mode fitpage myfile.pdf

... will remove 10% margins around each source page and turn that into the output page, but it will always take the same crop box on each page--it won't determine the optimum position of the crop box on each page to best surround the text, which I think is what you want. I'll add your idea to my wish list, but I can't promise anything right away. It would involve a significant amount of new logic.

Perhaps Briss would be a better option for you since it lets you choose graphically?
willus is offline   Reply With Quote