Quote:
Originally Posted by japinder
Hi Will/Mark,
kpdfopt does a remarkable job to convert to landscape mode & never breaks the text into half, diagrams are a different kettle of fish though.
How do I convert a page into exactly two halves, preserving the text if it falls on the break boundary & if needed, a bit overlap, among the parts. Can this option be combined with other options like crop (cbox) etc?
|
If the diagrams have a box around them or are otherwise contiguous, you can adjust whether k2pdfopt will break them by adjusting the
-gtr option. But if the diagrams have clean breaks in them, then yes, there is no fuzzy logic in k2pdfopt to try to tell lines of text from diagrams by some other method, so it may break them across pages.
You can use the
-grid option to break pages in half with some overlap, e.g.
k2pdfopt -grid 1x2x5 ...
... breaks the source file into two halves (1 column x 2 rows) with 5% overlap. This is virtually identical to this:
k2pdfopt -cbox 0,0,1s,.525s -cbox 0,.475s,1s,.525s ...
The above method makes two crop-boxes on each source page. The "s" qualifier means the values are fractions of the source page size.
Neither of these methods guarantee a clean break, i.e. they don't try to avoid cutting a line of text in half. If you want that, then you should use the fit-width mode:
k2pdfopt -mode fw ...
It won't guarantee to cut each page exactly in two because it does look for clean line breaks, but if you size your device settings correctly (e.g. set your device width to half the source page height and set your device height to the source page width using
-w and
-h), you can get approximately two output pages for each source page.
You can get more detail on all these options at the
help page (or select Help | Command-line Options... from the menus in the MS Windows GUI).