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 06-15-2022, 12:40 AM   #1951
srpgreader
Junior Member
srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 3
Karma: 50586
Join Date: Jun 2022
Device: none
Quote:
Originally Posted by willus View Post
This is very hard to diagnose without a sample. Can you post a page or two from the PDF you are trying to convert that is having the issue?
sure thing. just attached a 2 page sample.
it has the vines on top and bottom.
2 columns
"left" pages have a sort of table of contents on the left
"right" pages have a sort of table of contents on the right

I'm trying to convert it into a document that:
doesn't include any large pictures like the one included on one of the sample pages
converts both columns into one column I can read left to right.
removes the vines
removes the TOC on the left and right pages.

the end goal is a book I can read much easier from a tablet or from a text to speech program.

currently, text to speech programs read the left column first, then the right column of the next page, then the left column of that page, and so on, and it makes it very hard to understand what's going on when reading it in a sort of backwards order.

when you look at the sample you'll understand how much of a nightmare this document is.
Attached Files
File Type: pdf 2pagesample.pdf (4.27 MB, 66 views)

Last edited by srpgreader; 06-15-2022 at 12:43 AM.
srpgreader is offline   Reply With Quote
Old 06-15-2022, 09:49 PM   #1952
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,225
Karma: 10082256
Join Date: Jun 2011
Location: California
Device: iPad
For this specific case with so many graphics in the margins, particularly if the columns are very consistent throught the document, I recommend using a couple of fixed crop boxes around the columns. See the screen shot from the GUI (the GUI has a nice selection tool to quickly create the crop boxes--I added a screenshot of that where it overlays the pages together so you can see how your cropping selection fits over multiple pages).

The command line is:
k2pdfopt -mode 2col -c -cbox- -ibox- -cbox 0.9242in,0.9942in,3.291in,8.892in -cbox 4.229in,1.05in,3.333in,8.71in 2pagesample.pdf
Attached Thumbnails
Click image for larger version

Name:	scrshot.png
Views:	101
Size:	246.3 KB
ID:	194395   Click image for larger version

Name:	scrshot2.png
Views:	99
Size:	458.3 KB
ID:	194396  

Last edited by willus; 06-15-2022 at 09:53 PM.
willus is offline   Reply With Quote
Old 06-15-2022, 11:25 PM   #1953
srpgreader
Junior Member
srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!srpgreader is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 3
Karma: 50586
Join Date: Jun 2022
Device: none
Quote:
Originally Posted by willus View Post
For this specific case with so many graphics in the margins, particularly if the columns are very consistent throught the document, I recommend using a couple of fixed crop boxes around the columns. See the screen shot from the GUI (the GUI has a nice selection tool to quickly create the crop boxes--I added a screenshot of that where it overlays the pages together so you can see how your cropping selection fits over multiple pages).

The command line is:
k2pdfopt -mode 2col -c -cbox- -ibox- -cbox 0.9242in,0.9942in,3.291in,8.892in -cbox 4.229in,1.05in,3.333in,8.71in 2pagesample.pdf
thanks so much, I'll try this out!
srpgreader is offline   Reply With Quote
Old 06-27-2022, 04:16 PM   #1954
stamatis
Junior Member
stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 2
Karma: 50586
Join Date: Aug 2017
Device: kobo aura hd
One page is ok, the next not

I convert a book. The first page is ok. But the second is smaller. The same happens after a number of pages. One is ok, but the following are smaller. I submit 2 pages to see the difference. Any idea?
Attached Thumbnails
Click image for larger version

Name:	1 page.jpg
Views:	68
Size:	83.4 KB
ID:	194600   Click image for larger version

Name:	2 page.jpg
Views:	64
Size:	84.6 KB
ID:	194601  
stamatis is offline   Reply With Quote
Old 06-28-2022, 09:59 PM   #1955
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,225
Karma: 10082256
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by stamatis View Post
I convert a book. The first page is ok. But the second is smaller. The same happens after a number of pages. One is ok, but the following are smaller. I submit 2 pages to see the difference. Any idea?
Can you post (1) a small sample of the book (or PM it to me), and (2) the options you used or a screen shot of the conversion screen?
willus is offline   Reply With Quote
Old 07-02-2022, 08:47 PM   #1956
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,225
Karma: 10082256
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by stamatis View Post
I convert a book. The first page is ok. But the second is smaller. The same happens after a number of pages. One is ok, but the following are smaller. I submit 2 pages to see the difference. Any idea?
Thank you for sending me the PDF. You are using the "fitpage" mode of conversion (-mode fp), which is doing exactly what it ways it will do--trimming each page within your crop box and fitting that to the output page so that it gets the largest text size / magnification possible. This means that the occasional page with less text on it--at the beginning or end of a chapter--will be fit at a higher magnification because it is less tall and can fit to the width of your screen. If you would like a more consistent output page size, you have two options:

1. Use the fit-width mode, where k2pdfopt will fit to the width of the device. This will break source pages up into multiple output pages if that is okay with you:

k2pdfopt -dev kbhd -mode fw -ls- -cbox .14,.22,5.29,7.81 -om .2

(the -ls- will keep the output in portrait mode.)

2. Use the crop mode with a tighter box around your page text. This will not trim the crop box so that all source pages will translate to a single output page of the same size:

k2pdfopt -dev kbhd -mode crop -cbox 0.64in,0.98in,4.20in,6.09in -om .2
willus is offline   Reply With Quote
Old 07-03-2022, 10:21 AM   #1957
stamatis
Junior Member
stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!stamatis is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 2
Karma: 50586
Join Date: Aug 2017
Device: kobo aura hd
Thanks willus! Your help was important and so now I can make, not only this, but all pdfs display correctly and can be read comfortably in the reader.
Thank you for your time and help!
stamatis is offline   Reply With Quote
Old 07-09-2022, 04:03 PM   #1958
pedrogaza
Junior Member
pedrogaza has a propeller beanie that spins backward.pedrogaza has a propeller beanie that spins backward.pedrogaza has a propeller beanie that spins backward.pedrogaza has a propeller beanie that spins backward.pedrogaza has a propeller beanie that spins backward.pedrogaza has a propeller beanie that spins backward.pedrogaza has a propeller beanie that spins backward.pedrogaza has a propeller beanie that spins backward.pedrogaza has a propeller beanie that spins backward.pedrogaza has a propeller beanie that spins backward.pedrogaza has a propeller beanie that spins backward.
 
Posts: 7
Karma: 61576
Join Date: Dec 2013
Device: Kobo Mini
Kindle 10th gen

Hello,

I spent hours to check the real height and width for Kindle 10th generation (800×600 167dpi display), with Kindle 5.14 firmware.
It is 570px wide and a height of 754px

So the command is

Code:
k2pdfopt -dpi 167  -w 570 -h 754 $INPUTFILE -o $OUTPUTFILE
Is it possible to add it as a device profile ?

Thanks
pedrogaza is offline   Reply With Quote
Old 07-09-2022, 07:46 PM   #1959
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,225
Karma: 10082256
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by pedrogaza View Post
I spent hours to check the real height and width for Kindle 10th generation (800×600 167dpi display)...

So the command is

Code:
k2pdfopt -dpi 167  -w 570 -h 754 $INPUTFILE -o $OUTPUTFILE
Is it possible to add it as a device profile ?
I'll add to my feature request list. Can you post screenshots to this thread?
willus is offline   Reply With Quote
Old 07-18-2022, 02:38 AM   #1960
Thru
Junior Member
Thru began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2022
Device: none
Hi
I have a problem with k2pdfopt on Linux (on ARM smartphone), more:
https://www.reddit.com/r/termux/comm..._k2pdfopt_253/
Does anybody have an idea about it ?
Thru is offline   Reply With Quote
Old 07-18-2022, 02:49 AM   #1961
Thru
Junior Member
Thru began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2022
Device: none
Hi
There seems to be a problem with k2pdfopt 2.53 on termux(Linux on ARM smartphone). The Termux dev says it is an upstream issue Basically I cant have a full pdf converted (default setup no additional commands), only the first few page are converted. As an example the app only converts the first 10 pages (out of 28) of the following pdf https://michaelberryphysics.files.wo...7/berry337.pdf
Reddit link :
https://www.reddit.com/r/termux/comm..._k2pdfopt_253/
Thru is offline   Reply With Quote
Old 07-22-2022, 03:14 PM   #1962
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,225
Karma: 10082256
Join Date: Jun 2011
Location: California
Device: iPad
Where did you get the build from? What does the header say when you run it?

E.g.
k2pdfopt v2.53 (w/MuPDF,DjVuLibre,OCR) (c) 2020, GPLv3, http://willus.com
Compiled Jul 18 2020 with Gnu C (Mingw64) v9.3.1 for Win64 on x64.
willus is offline   Reply With Quote
Old 07-25-2022, 01:27 PM   #1963
Thru
Junior Member
Thru began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2022
Device: none
Quote:
Originally Posted by willus View Post
Where did you get the build from? What does the header say when you run it?

E.g.
k2pdfopt v2.53 (w/MuPDF,DjVuLibre,OCR) (c) 2020, GPLv3, http://willus.com
Compiled Jul 18 2020 with Gnu C (Mingw64) v9.3.1 for Win64 on x64.
This is from Termux terminal (installation):

Preparing to unpack .../17-k2pdfopt_2.53_arm.deb ...
Unpacking k2pdfopt (2.53) ...
Setting up libuuid (1.0.3-5) ...
Setting up libpng (1.6.37-3) ...
Setting up littlecms (2.13.1-1) ...
Setting up ttf-dejavu (2.37-8) ...
Setting up freetype (2.12.1) ...
Setting up libjpeg-turbo (2.1.3) ...
Setting up giflib (5.2.1-2) ...
Setting up libidn (1.38) ...
Setting up libxml2 (2.9.14) ...
Setting up zstd (1.5.2-1) ...
Setting up openjpeg (2.5.0) ...
Setting up fontconfig (2.14.0) ...
Setting up libtiff (4.3.0-2) ...
Setting up ghostscript (9.56.1) ...
Setting up libjasper (3.0.6) ...
Setting up libwebp (1.2.3) ...
Setting up leptonica (1.82.0-1) ...
Setting up k2pdfopt (2.53) ...
~ $ k2pdfopt
k2pdfopt v2.53 (Ghostscript only) (c) 2022, GPLv3, http://willus.com
Compiled Jul 2 2022 with Gnu C v4.2.1 for Linux on Unknown architecture.

And this a Github link to the k2pdfopt package for Termux:
https://github.com/termux/termux-pac...kages/k2pdfopt

Thank you for the amazing app willus.
Thru is offline   Reply With Quote
Old 07-26-2022, 10:33 PM   #1964
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,225
Karma: 10082256
Join Date: Jun 2011
Location: California
Device: iPad
Does the Linux Aarch64 download not work for you? The download you are running isn't compiled with MuPDF or any OCR capability. Hard to say why it may be failing after only a few pages. User pumpapa posted about a similar issue before.

Last edited by willus; 07-26-2022 at 10:38 PM.
willus is offline   Reply With Quote
Old 07-29-2022, 01:56 AM   #1965
Thru
Junior Member
Thru began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2022
Device: none
Quote:
Originally Posted by willus View Post
Does the Linux Aarch64 download not work for you? The download you are running isn't compiled with MuPDF or any OCR capability. Hard to say why it may be failing after only a few pages. User pumpapa posted about a similar issue before.
My phone runs a 32bit kernel.
Thanks again.
Thru is offline   Reply With Quote
Reply

Tags
ebook apps, k5 tools, kindle tools, kindle touch, tools

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Viewing PDFs with another font Font PocketBook 4 11-12-2010 08:27 AM
Viewing Textbook PDFs... NJReader enTourage Archive 4 08-17-2010 05:17 PM
PRS-600 Restart bug while viewing PDFs? conundrum Sony Reader 2 03-04-2010 08:46 PM
More on viewing pdfs dso371 Bookeen 8 03-11-2008 07:15 PM
Viewing Untagged PDFs on Palm T|X Eroica Reading and Management 3 12-10-2007 01:44 PM


All times are GMT -4. The time now is 07:28 PM.


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