Quote:
Originally Posted by MarjaE
After several more tries, I finally processed the hardest of these files... so none are completely broken.
I don't know if it caused any of the trouble, but I uninstalled Malwarebytes for the time being.
Here is a free pdf which gave me a lot of trouble though: https://gallica.bnf.fr/ark:/12148/bpt6k6348270v (there's an option to download the book as a pdf.)
When running in the command line with -mode copy -dev dx, I was getting frequent seg faults. I still get some.
When running in the Mac Automator, I get other error messages, and the Automator still often drops out when the regular interface would keep going.
|
Okay, well, I couldn't get any seg faults or other funny behavior with my version of k2pdfopt on that file with Windows 10, but there are several options you may want to use to help it fit your DX screen better and to improve the contrast and conversion speed. Try this, for example:
k2pdfopt -mode tm -m 0.8,0.8,0.8,1.5 -n- -dev dx -idpi 144 french_book.pdf
I attached this conversion for pages 50-70 of the book. Here's what each option does:
-mode tm Tells k2pdfopt to trim each page to eliminate wasted margin space and save each new source page to a new destination page.
-m 0.8,0.8,0.8,1.5 Cuts off 0.8 inches around each source page, 1.5 inches off the bottom edge.
-n- Turn off native output mode so k2pdfopt can change the contrast of each page.
-idpi 144 This is probably most important. It overrides k2pdfopt's default mode of doubling the device resolution for rendering the PDF pages. Without this, k2pdfopt will render each input page at 333 dpi, which slows things way down and uses lots more memory than necessary. The source file has bitmaps that are only 72 dpi, so 144 dpi for rendering them internally in k2pdfopt is plenty.