View Single Post
Old 08-04-2013, 07:20 PM   #500
Pagliuz
Junior Member
Pagliuz got an A in P-Chem.Pagliuz got an A in P-Chem.Pagliuz got an A in P-Chem.Pagliuz got an A in P-Chem.Pagliuz got an A in P-Chem.Pagliuz got an A in P-Chem.Pagliuz got an A in P-Chem.Pagliuz got an A in P-Chem.Pagliuz got an A in P-Chem.Pagliuz got an A in P-Chem.Pagliuz got an A in P-Chem.
 
Posts: 3
Karma: 6000
Join Date: Aug 2013
Device: Sony PRS-T2
Quote:
Originally Posted by willus View Post
@Pagliuz -- I think you have two reasonable options for this file:

Option 1. Because the text is only 4.7 inches wide if you strip away the margins, it reads pretty well without any re-flow if you use the standard "fit width" mode (with -n- to turn off native PDF output since your source is a DJVU file):

k2pdfopt -mode fw -n- myfile.djvu

This is sure not to mess up figures or alignment, so you get the best looking output, but it may be that the text is too small for you to read. If that is the case, then:

Option 2. Try to make sure k2pdfopt only re-flows the text and not the figures or equations:

k2pdfopt -col 1 -whmax 0.2 myfile.djvu

The "-col 1" will disable detection of multiple columns, and the -whmax 0.2 is an undocumented option which tells k2pdfopt not to re-flow any image taller than 0.2 inches (i.e. anything that's taller than a standard line of text). This will do a better job of keeping some of the figures from being interpreted as lines of text which get re-flowed. It's not perfect, but it seems to be better than the default conversion you got.

Another option is to add -mt 0.75, which will chop off the headers on each page so that the text is more continuous in the converted file, but this makes it harder to reference the original page numbers in the converted file.
Thank you Willus, both the solutions work pretty fine; i think the first one you said is the best!
You saved my day!

Keep on the fantastic work you are doing man!
Pagliuz is offline   Reply With Quote