Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 08-15-2020, 02:55 PM   #1
lifeinoleg
Junior Member
lifeinoleg began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2020
Device: Kobo Libra H2O
KOReader/PDF Questions

Hello All, I just got a Libra H2O, and I've been testing out various readers in order to be able to read PDFs efficiently. Thus far, I found that KOReader is the fastest, but I have two questions:

1) How do I highlight/add annotations to more than one word at a time? Is that possible?

2) Are there strategies to improve performance for larger PDFs? I have a ~60MB and it takes a long time to turn pages, especially at the beginning (I'm assuming because the cover image is big). I tried converting to epub with Calibre, but the results were not good. Do I compress the file? Reflow using KOReader or some other app?

I really would like to be able to use PDFs on the device, but right now the experience is pretty unsatisfactory.

Thanks for your help!
lifeinoleg is offline   Reply With Quote
Old 08-15-2020, 05:11 PM   #2
orebmur
Veteran Linux user
orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.orebmur ought to be getting tired of karma fortunes by now.
 
Posts: 150
Karma: 1000000
Join Date: Mar 2017
Location: Barcelona/Spain
Device: Boyue Likebook Note & Mimas, Hisense A5, hopefully soon a PineNote
It probably all depends on the specific properties of the PDF file in question. File size in itself is not necessarily an issue, but rendering unnecessarily big image files might be one.

Opening a 203 MB sized PDF file with more than 12.000 pages but no graphics at all works like a charm here.

Maybe it helps to recompress the PDF in question.

If you happen to use Linux and have ghostscript installed, this script might help a bit:

Code:
# cat /usr/local/bin/pdfresize
#!/bin/bash

PDFINPUT="${1}"

if [ "${PDFINPUT}" != "" ] && [ -f "${PDFINPUT}" ]
then
    PDFOUTPUT=$(basename "${PDFINPUT}" .pdf)_resized.pdf
    if [ ! -f "${PDFOUTPUT}" ]
    then
        echo "Input size is:"
        /usr/bin/du -b "${PDFINPUT}" 
        echo "Reconverting input file with GhostScript..."
        /usr/bin/gs -o "${PDFOUTPUT}" \
            -sDEVICE=pdfwrite \
            -dCompatibilityLevel=1.4 \
            -dSAFER -dNOPAUSE \
            -sPAPERSIZE="" -dBATCH \
            -dPDFSETTINGS=/prepress \
            "${PDFINPUT}" &> /dev/null
    else
        echo "${PDFOUTPUT} already exists"
    fi
    if [ -f "${PDFOUTPUT}" ]
    then
        if [ "$(/usr/bin/du -b "${PDFOUTPUT}" | awk '{print $1}')" -lt "$(/usr/bin/du -b "${PDFINPUT}" | awk '{print $1}')" ]
        then
            /bin/mv "${PDFOUTPUT}" "${PDFINPUT}"
            /usr/bin/du -b "${PDFINPUT}"
        else
            echo "Recompressed pdf is equal or larger than input file:"
            /usr/bin/du -b "${PDFINPUT}" "${PDFOUTPUT}"
            echo "Removing pointless output file..."
            rm -f "${PDFOUTPUT}"
        fi
    fi
else
    echo "Usage: $(basename "${0}") <file.pdf>"
fi
Another approach based on pdftk instead of ghostscript:

Code:
# cat /usr/local/bin/pdfrecompress 
#!/bin/bash

if [ "$(command -v pdftk)" = "" ]
then
    echo "Please first install pdftk in order to use $(basename "${0}")"
    exit 1
fi

PDFINPUT="${1}"

if [ "${PDFINPUT}" != "" ] && [ -f "${PDFINPUT}" ]
then
    PDFOUTPUT=$(basename "${PDFINPUT}" .pdf)_fixed.pdf
    if [ ! -f "${PDFOUTPUT}" ]
    then
        #echo "Uncompressing ${PDFINPUT}"
            pdftk "${PDFINPUT}" output uncompressed.pdf uncompress && \
        echo "Recompressing modified document..."
            pdftk uncompressed.pdf output compressed.pdf compress && \
                mv compressed.pdf "${PDFOUTPUT}"
                rm -f uncompressed.pdf
    else
        echo "${PDFOUTPUT} already exists"
    fi
    if [ -f "${PDFOUTPUT}" ]
    then
        if [ "$(/usr/bin/du "${PDFOUTPUT}" | awk '{print $1}')" -lt "$(/usr/bin/du "$(basename "${PDFOUTPUT}" _fixed.pdf)".pdf | awk '{print $1}')" ]
        then
            /bin/mv "${PDFOUTPUT}" "$(basename "${PDFOUTPUT}" _fixed.pdf)".pdf
        else
            echo "Discarding recompressed pdf larger than input file:"
            /usr/bin/du -sk "${PDFOUTPUT}" 
            rm -f "${PDFOUTPUT}"
        fi
    fi
else
    echo "Usage: $(basename "${0}") <file.pdf>"
fi
Be careful to not apply this to your precious original PDF file as it will be overwritten, but rather try this on a differently named copy of it.
orebmur is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Koreader on Onyx Boox Nova Pro questions jscris KOReader 9 11-06-2019 09:41 AM
What's the best way to read a 2-column pdf in Koreader? doron KOReader 12 08-06-2019 09:07 AM
file name (pdf) or title in koreader pldta KOReader 1 03-24-2019 11:02 AM
freshly jailbroken PW4 user LOVING KOreader .. but have these questions... :) arooni KOReader 13 02-09-2019 07:21 PM
KOReader and KOA questions godlike KOReader 4 11-26-2016 12:50 PM


All times are GMT -4. The time now is 09:11 PM.


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