![]() |
#1 |
Junior Member
![]() 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! |
![]() |
![]() |
![]() |
#2 |
Veteran Linux user
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 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 |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
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 |