Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > PDF

Notices

Reply
 
Thread Tools Search this Thread
Old 03-25-2016, 03:19 AM   #1246
poco06
Member
poco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texan
 
Posts: 19
Karma: 18214
Join Date: Jan 2010
Device: PRS600
Convert comic pdf to reduce file size

Hello,
Just discover K2pdfopt and would like to know if there is a specific parameter to use for this case :

I have comics in pdf but with large page size (A4) and global size of more than 100Mo
I would like to reduce the page size to Ipad size but keeping the way pages are done (ie : page 4 will still be page 4 with all items in it but with reduced size). Normally, file size shoudl reduced to 20Mo !

Can you help please?
Thanks
Pat
poco06 is offline   Reply With Quote
Old 03-25-2016, 11:55 PM   #1247
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,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by poco06 View Post
I have comics in pdf but with large page size (A4) and global size of more than 100Mo
I would like to reduce the page size to Ipad size but keeping the way pages are done (ie : page 4 will still be page 4 with all items in it but with reduced size). Normally, file size shoudl reduced to 20Mo !

Can you help please?
Generally you want to use either

Code:
k2pdfopt -mode copy -odpi 180 ...
or

Code:
k2pdfopt -mode trim -n- ...
The first option will keep the page sizes exactly the same as the source PDF, but you can change the dpi of the output pages to whatever resolution you want using the -odpi option (lowering the value will reduce the total output file size in MB but will reduce the resolution of each page). To make the best use of iPad's 1536 x 2048 screen with an A4 image, you want to use about 180 dpi.

The second option will get rid of any excess margins on each page, cropping it only to the visible content.
willus is offline   Reply With Quote
Advert
Old 03-26-2016, 01:26 PM   #1248
dudebro
Junior Member
dudebro for a long time would go to bed early.dudebro for a long time would go to bed early.dudebro for a long time would go to bed early.dudebro for a long time would go to bed early.dudebro for a long time would go to bed early.dudebro for a long time would go to bed early.dudebro for a long time would go to bed early.dudebro for a long time would go to bed early.dudebro for a long time would go to bed early.dudebro for a long time would go to bed early.dudebro for a long time would go to bed early.
 
Posts: 1
Karma: 17990
Join Date: Mar 2016
Device: nexus S
Holy shit this is the best thing ever, I can finally read those shitty 2-column articles without going crosseyed, I've tried dozens of pdf apps for Android and none do this kind of thing. WELL DONE.

Just a suggestion, I would love a reader on Windows (or a plugin for Sumatra PDF) that does this automatically when I open pdf files so that I don't have to convert everything beforehand (amazingly, conversion to mobile layout makes things WAY more readable even on a laptop screen!)

Anyways, thanks again for this software and I hope whoever invented the 2-column journal format burns in hell for eternity
dudebro is offline   Reply With Quote
Old 03-26-2016, 02:35 PM   #1249
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,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by dudebro View Post
Holy shit this is the best thing ever, I can finally read those shitty 2-column articles without going crosseyed, I've tried dozens of pdf apps for Android and none do this kind of thing. WELL DONE.

Just a suggestion, I would love a reader on Windows (or a plugin for Sumatra PDF) that does this automatically when I open pdf files so that I don't have to convert everything beforehand (amazingly, conversion to mobile layout makes things WAY more readable even on a laptop screen!)

Anyways, thanks again for this software and I hope whoever invented the 2-column journal format burns in hell for eternity
I'm not much in the business of writing plugins or reader apps. I only know of the reader apps I mention on my 3rd-party contributions page. I might poke into what it would take to make a plug-in for Sumatra, though.

Sorry--can't agree with you on the 2-column format. I actually prefer it for reading journal articles on a normal page-sized format. Besides, it gave me a nice project to work on. Thanks for the enthusiastic feedback.
willus is offline   Reply With Quote
Old 03-27-2016, 12:24 AM   #1250
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
You can build a desktop emulator for KOReader if you set up the development environment. KOReader embeds k2pdfopt for on-the-fly reformatting on ereaders, but there are no prebuilt binaries for the desktop.

That might be too much work to be worth the effort, though.
eschwartz is offline   Reply With Quote
Advert
Old 04-04-2016, 08:33 AM   #1251
poco06
Member
poco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texan
 
Posts: 19
Karma: 18214
Join Date: Jan 2010
Device: PRS600
Hello,

I'm using K2pdf with your recommandation concerning the parameters (k2pdfopt -mode copy -odpi 180) to use for downsizing the pdf size and it's woorking fine. Thanks.
Now, when I look at the result, I'm not really happy with the colors.
In fact, the original pdf have pastel colors and the optimized pdf have very strong colors.
Is there a way to make the optimized version the same color look as the original?
Regards
Pat
poco06 is offline   Reply With Quote
Old 04-04-2016, 10:54 PM   #1252
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,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by poco06 View Post
Hello,

I'm using K2pdf with your recommandation concerning the parameters (k2pdfopt -mode copy -odpi 180) to use for downsizing the pdf size and it's woorking fine. Thanks.
Now, when I look at the result, I'm not really happy with the colors.
In fact, the original pdf have pastel colors and the optimized pdf have very strong colors.
Is there a way to make the optimized version the same color look as the original?
Regards
Pat
Yes--you can turn off gamma correction and contrast adjustment (which default to values that darken the text on the kindle):
Code:
-cmax 1 -g 1
willus is offline   Reply With Quote
Old 04-06-2016, 06:39 AM   #1253
poco06
Member
poco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texanpoco06 might easily be mistaken for a Texan
 
Posts: 19
Karma: 18214
Join Date: Jan 2010
Device: PRS600
Hi Willus
That's perfect
Many thanks
Pat
poco06 is offline   Reply With Quote
Old 04-11-2016, 07:16 AM   #1254
moll
Junior Member
moll has become one with the cosmosmoll has become one with the cosmosmoll has become one with the cosmosmoll has become one with the cosmosmoll has become one with the cosmosmoll has become one with the cosmosmoll has become one with the cosmosmoll has become one with the cosmosmoll has become one with the cosmosmoll has become one with the cosmosmoll has become one with the cosmos
 
Posts: 3
Karma: 21970
Join Date: Apr 2016
Device: Kindle Touch 7th Generation
I am using the software on Mac and it is great.

However, for some PDF files, I met the error "Segmentation Fault 11" and the process terminated. It is not very convenient while converting a folder.

Please
moll is offline   Reply With Quote
Old 04-11-2016, 08:29 AM   #1255
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,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by moll View Post
I am using the software on Mac and it is great.

However, for some PDF files, I met the error "Segmentation Fault 11" and the process terminated. It is not very convenient while converting a folder.

Please
Welcome to MobileRead. Can you post one of the PDFs that causes the segmentation fault so I can test it? If you don't want to post it publicly, send me a private message.
willus is offline   Reply With Quote
Old 04-15-2016, 02:08 AM   #1256
moll
Junior Member
moll has become one with the cosmosmoll has become one with the cosmosmoll has become one with the cosmosmoll has become one with the cosmosmoll has become one with the cosmosmoll has become one with the cosmosmoll has become one with the cosmosmoll has become one with the cosmosmoll has become one with the cosmosmoll has become one with the cosmosmoll has become one with the cosmos
 
Posts: 3
Karma: 21970
Join Date: Apr 2016
Device: Kindle Touch 7th Generation
Quote:
Originally Posted by willus View Post
Welcome to MobileRead. Can you post one of the PDFs that causes the segmentation fault so I can test it? If you don't want to post it publicly, send me a private message.
I realised that, if I convert this PDF file again, the segmentation fault disappeared, i.e. the error appears only with batch conversion.
moll is offline   Reply With Quote
Old 05-07-2016, 10:10 AM   #1257
isaacbh
Connoisseur
isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.
 
Posts: 57
Karma: 98196
Join Date: Mar 2015
Location: Israel
Device: Kobo Aura H20
Hi willus..
Figures and diagrams are often accompanied by a caption. However, k2pdfopt will not treat the caption text as part of the figure and so the caption might end up on the next page if a break occurs. (This is understandable, since the caption is just text.) To circumvent this, I put colored marks before and after the figure + caption and use -bpm2 to keep them together. This works, however now there is no vertical space between the caption and the next paragraph, as seen in the image. Is there some magic that k2pdfopt can do to restore that space? Or maybe a solution is to be able to mark figures manually: That would allow also tables and lists to be treated as a single unit, if desired.

isaacbh is offline   Reply With Quote
Old 05-07-2016, 10:33 PM   #1258
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,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by isaacbh View Post
Hi willus..
Figures and diagrams are often accompanied by a caption. However, k2pdfopt will not treat the caption text as part of the figure and so the caption might end up on the next page if a break occurs. (This is understandable, since the caption is just text.) To circumvent this, I put colored marks before and after the figure + caption and use -bpm2 to keep them together. This works, however now there is no vertical space between the caption and the next paragraph, as seen in the image. Is there some magic that k2pdfopt can do to restore that space? ...
I'll have to see why the white space captured between marks for -bpm2 gets eliminated. My opinion is that it should be maintained, so I'd say that's a bug. But you can kludge it with the existing version by putting a small black mark just above the second colored mark that keeps the caption with the figure. See that attached example. BTW, k2pdfopt does try to anticipate captions after figures and keep them with the figures, but it has some internal rules for how close it expects the captions to be to the figures, and if those internal rules are violated, then the caption can get separated from the figure.
Attached Thumbnails
Click image for larger version

Name:	example.png
Views:	218
Size:	11.9 KB
ID:	148532  
willus is offline   Reply With Quote
Old 05-08-2016, 11:23 AM   #1259
isaacbh
Connoisseur
isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.isaacbh makes omelettes without breaking eggs.
 
Posts: 57
Karma: 98196
Join Date: Mar 2015
Location: Israel
Device: Kobo Aura H20
Quote:
Originally Posted by willus View Post
But you can kludge it with the existing version by putting a small black mark just above the second colored mark that keeps the caption with the figure.
Thanks, that helped! Hope it gets fixed, as its a bit tedious now

Last edited by isaacbh; 05-08-2016 at 11:58 AM.
isaacbh is offline   Reply With Quote
Old 06-02-2016, 01:51 AM   #1260
atoq
Junior Member
atoq might easily be mistaken for a Texanatoq might easily be mistaken for a Texanatoq might easily be mistaken for a Texanatoq might easily be mistaken for a Texanatoq might easily be mistaken for a Texanatoq might easily be mistaken for a Texanatoq might easily be mistaken for a Texanatoq might easily be mistaken for a Texanatoq might easily be mistaken for a Texanatoq might easily be mistaken for a Texanatoq might easily be mistaken for a Texan
 
Posts: 1
Karma: 18200
Join Date: Aug 2011
Device: none
If there is an equal sign, =, at end of line, it gets removed

Hi Willus,

I'm using k2pdfopt 2.34b for converting pdfs to be read on Nook.
The conversion is fine, but when a line contains an equation, and ends
on equal sign, =, for being continued on the next line, the equal sign
gets removed in the converted pdf.

atoq is offline   Reply With Quote
Reply

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


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:49 AM.


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