View Single Post
Old 09-03-2014, 08:47 AM   #895
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 krogank9 View Post
sure. i dont mind posting the pdf. here it is:

https://384ceda309d543db8121e87d97c2...g/Unit%201.pdf

also, it originally came in .odt open office format, i converted it to pdf from that:

https://googledrive.com/host/0BwfCKx...1oazg/Unit.odt

the other option i was thinking but have no idea how to do is to put a black border around all the images in my document to try to make sure it doesnt autocrop as whitespace. not sure how that would work though...

but yeah anyway it totally messes up the formatting of the tables & images and makes it unusable
You have several options since you have the source file. For one thing, you could try setting the page size of your .odt file to your device page size so that you generate the correctly-sized PDF right from your word processing program. I think that would be your best option. Like you said, you could also try to box all the figures--that would help, too. But even on the PDF you generated, you can help the conversion by setting the white threshold value very high since it is generated rather than scanned:

k2pdfopt -wt 254 -c -gtr .002 -col 1 unit1.pdf


The high white threshold will help see the light pink and light gray and light blue colors in the figures as "black" rather than "white" (i.e. as content)--and will thus make it harder for k2pdfopt to split them. I've also set the -gtr value lower than normal to try and prevent splitting figures, but I don't think it did much. And I used -col 1 since it's not a 2-column document.

But again, I'd definitely try working with the .odt file directly. I'll try it later myself if I get a chance.
willus is offline   Reply With Quote