Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > PDF

Notices

Reply
 
Thread Tools Search this Thread
Old 05-05-2019, 03:01 PM   #1
MarjaE
Evangelist
MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.
 
Posts: 401
Karma: 1548692
Join Date: Jun 2015
Device: Iriver Story HD and Amazon Kindle DX
Tools to test pdf compatibility and speed?

I variously use k2opt with -mode copy and -dev dx and Ghostscript with -dCompatibilityLevel=1.4 to pre-process pdfs for my Kindle Dx.

I sometimes use k2opt with -mode copy and sometimes -dev dx and then OCRmypdf with -f --output-type pdfa-1 to find readable text on pdfs without it or with corrupt text.

I occasionally use PDF to EPUB+, but it can screw up formatting, and it is a hassle if I need to cite page numbers.

I used to use Ghostscript with more aggressive options, but it would lose pages.

These tools *should* cover compatibility with the Kindle Dx, but Ghostscript sometimes yields very fast pdfs... and sometimes very slow ones that take several minutes to turn a page... forcing me to turn to k2 after all.

Is there any easy way to check for compatibility issues, missing or corrupt text, malformed pages, and/or speed?
MarjaE is offline   Reply With Quote
Old 05-05-2019, 06:00 PM   #2
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,519
Karma: 14554225
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by MarjaE View Post
Is there any easy way to check for compatibility issues, missing or corrupt text, malformed pages, and/or speed?
The free community edition of cpdf will automatically fix some errors if you simply use the following command:

Code:
cpdf in.pdf -o out.pdf
You can also use the linearization option to convert your PDF files to web optimized PDF files:

Code:
cpdf -l in.pdf -o out.pdf
Doitsu is offline   Reply With Quote
Old 05-05-2019, 09:07 PM   #3
MarjaE
Evangelist
MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.
 
Posts: 401
Karma: 1548692
Join Date: Jun 2015
Device: Iriver Story HD and Amazon Kindle DX
Thank you, but without a testing tool, I'd have to run every file through yet another app.

By default cpdf is a command-line tool, and depending how it refers to cpdflin, it may not work in Apple's Automator. I know ocrmypdf does not work in Apple's Automator, because of how it refers to tesseract.

Even with drag-and drop, it would be an issue for my repetitive stress injuries. Without drag-and-drop, it isn't suitable for more than a few files a week.

And the price is well out of my range.
MarjaE is offline   Reply With Quote
Old 05-08-2019, 09:00 PM   #4
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,054
Karma: 8500441
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by MarjaE View Post
These tools *should* cover compatibility with the Kindle Dx, but Ghostscript sometimes yields very fast pdfs... and sometimes very slow ones that take several minutes to turn a page... forcing me to turn to k2 after all.

Is there any easy way to check for compatibility issues, missing or corrupt text, malformed pages, and/or speed?
My experience is that the most common type of "slow" PDF is when the PDF uses a highly-compressed bitmap compression format such as JPX. A lot of archived books use this. Using k2pdfopt with the -i option will show you the internals of the PDF. Do you have a couple examples of the slow ones?
willus is offline   Reply With Quote
Old 05-09-2019, 07:19 PM   #5
MarjaE
Evangelist
MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.
 
Posts: 401
Karma: 1548692
Join Date: Jun 2015
Device: Iriver Story HD and Amazon Kindle DX
No, these are ones I'd bought from Bundles of Holding.

I already converted jpx to Kindle-readable formats and removed passwords, etc. It may be an issue with technically-readable but oversized images. Unfortunately trying to compress or remove images occasionally leads to mis-scaled pages, with only the lower left corner showing, missing pages, etc.

I use the following /bin/bash shell script in Mac automator, passing input as arguments:

for f in "$@"
do
suffix="-converted.pdf"
base=`basename "$f" .pdf`
outputfile=$base$suffix
/usr/local/bin/gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -sstdout=%sstderr -dNOPAUSE -dQUIET -dBATCH -sOutputFile="$outputfile" "$f"
done

I know the syntax is different in the regular terminal.
MarjaE is offline   Reply With Quote
Old 05-13-2019, 12:35 AM   #6
MarjaE
Evangelist
MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.
 
Posts: 401
Karma: 1548692
Join Date: Jun 2015
Device: Iriver Story HD and Amazon Kindle DX
Apparently I can use -dFastWebView to linearize w/in Ghostscript. I haven't tested the results on the Kindle yet.
MarjaE is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PW2 App/tools compatibility thread Aeris Kindle Developer's Corner 104 12-05-2013 04:51 PM
Touch Kobo Touch Speed and Wi-Fi Compatibility Zimbu Kobo Reader 5 04-07-2012 10:55 PM
speed test toronado Amazon Kindle 8 09-11-2010 07:44 AM
Kindle 2 3g speed test readingforfun Amazon Kindle 13 08-11-2010 09:55 PM
Test your reading speed ! shawn99 Lounge 7 06-08-2008 04:22 PM


All times are GMT -4. The time now is 03:21 AM.


MobileRead.com is a privately owned, operated and funded community.