04-05-2011, 10:47 AM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Apr 2011
Device: Kindle 3
|
Kindle margins problem! Once and for all!
I have some PDF files which I want to display (in landscape mode) fitted to the full width of the device (Kindle 3). Just from bezel to bezel, with no whitespace margins on left and right. Kindle adds unnecessary margins to PDFs, so here is what I tried to do:
[NOTE: I mostly have PDFs that are all-image-based, or have complex formatting so converting them to MOBI (without firstly rasterizing them - i.e. converting pages as images) is not an option.] 1) I applied the zero-margins trick (https://wiki.mobileread.com/wiki/Kind..._Change_Margin) for my Kindle, set HORIZONTAL_MARGIN=0. But I know it does not work for PDFs so I have to convert it to MOBI/PRC. 2) I cropped all the margins from PDF. 3) Then I rasterized the PDF - converted it to images (each page as a separate PNG image). Used PDFill for that. 4) Then I generated the HTML (wrote little tool for that myself) based on that images, like that: <!DOCTYPE html> <HTML> <BODY> <img src="Page001.png" width="100%" alt="" /><br> <img src="Page002.png" width="100%" alt="" /><br> <img src="Page003.png" width="100%" alt="" /><br> <img src="Page004.png" width="100%" alt="" /><br> <img src="Page005.png" width="100%" alt="" /><br> </BODY> </HTML> As you see, I specified the width="100%" parameter which means each image should be fit-to-width! 5) I imported the generated HTML file (along with it's images) both in Calibre and Mobipocket, and there I converted it to *.mobi and *.prc. And guess what... In landscape mode... the pages (which are actually images) are not fit-to-width! Each page is displayed as fit-to-screen, so the whole page is shown (which makes no sense in landscape mode)! The exact same behavior for Calibre (*.mobi) and Mobipocket (*.prc) generated files. It looks like Kindle always displays the images as a whole (fit-to-screen), instead of displaying only the part of the image (fit-to-width in this case) and then scrolling it vertically. It just ignores the width="100%" parameter in HTML file. Don't know whether this parameter is lost during conversion (Calibre/Mobipocket issue), or just ignored by Kindle (Kindle issue). Is there ANY way of forcing Kindle to display images as fit-to-width? So the page could just span from bezel to bezel. Any special HTML tag or anything?.. Tried so many ways in last couple of days, ran out of ideas... Any kind of input would be much appreciated! Thanks in advance! |
04-05-2011, 11:59 AM | #2 | |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
You can't resize a pdf on the fly to fit bevel to bevel and not have any margins. Especially if it's an image... unless the pdf accidentally happens to fit perfectly bevel to bevel at its normal size. I've had the best luck with the following tools when trying to get any of my pdf's into a state that I can only describe as; "not completely sucking when viewed on my Kindle." Briss and/or PDFReflow |
|
Advert | |
|
04-05-2011, 07:27 PM | #3 |
I <3 my Kindle
Posts: 528
Karma: 51332
Join Date: Nov 2010
Location: United States
Device: Kindle 3G + WiFi
|
When it's really complicated, here's what I do:
That does it for me. |
04-06-2011, 04:33 AM | #4 |
Zealot
Posts: 123
Karma: 998177
Join Date: Aug 2010
Device: Kindle 3
|
For the books i really want to enjoy reading and want to share in the future I take a long route
1. Crop with Briss 2. OCR with ABBY Fine Reader and save as formatted text RTF 3. Do some editing with Word and save as Netscape 3 compatible HTML 4. Remove most Word-produced junk formatting from HTML with www.wordoff.org 5. Do some manual HTML clean up and tweaking 6. Import into Calibre, get metadata and cover 7. Convert to MOBI The end-result is usually fantastic. |
04-06-2011, 02:49 PM | #5 |
Junior Member
Posts: 5
Karma: 10
Join Date: Apr 2011
Device: Kindle 3
|
Hi everybody,
Thanks for your answers This forum is awesome (while my Kindle apparently isn't). I think I need to get DX. DiapDealer As for Briss and PDFReflow, for cropping I use A-PDF Page Crop which has more options than Briss (buggy though), and I can't use PDFReflow as I want to preserve original PDF as is - i.e. import rasterized. Starko That's the helluva work to do (even though I don't have much books, technical books mainly which you can't read "in bulk"). And OCR and stuff does not work well for complex-formatted PDFs that I have. kranu The (hidden) image viewer is awesome finding! It looks exactly like PDFs should look - fully fit-to-width, no margins, and especially fullscreen mode is exactly what I was after. But... there is only one thing that makes it unusable - I wasn't able to find "Go to page (image)" feature... Is it possible at all? Jumping to desired image? Any hidden hotkey maybe? Because without this it is unusable as book reader. |
Advert | |
|
04-08-2011, 01:24 PM | #6 | |
Junior Member
Posts: 5
Karma: 10
Join Date: Apr 2011
Device: Kindle 3
|
How to go to specific image in Image Viewer?
Quote:
|
|
04-08-2011, 07:00 PM | #7 |
I <3 my Kindle
Posts: 528
Karma: 51332
Join Date: Nov 2010
Location: United States
Device: Kindle 3G + WiFi
|
|
04-09-2011, 10:36 AM | #8 |
Junior Member
Posts: 5
Karma: 10
Join Date: Apr 2011
Device: Kindle 3
|
kranu
I tried that (merging images into mobi), but besides progress bar, in mobi/prc format the images are shown fully, i.e. fit-to-screen, not fit-to-width, even in landscape mode, so they are very tiny and unreadable. Maybe I did something wrong? Any way to force image-based *.mobi or *.prc files to display fit-to-width in landscape mode?? |
04-09-2011, 10:42 PM | #9 | |
I <3 my Kindle
Posts: 528
Karma: 51332
Join Date: Nov 2010
Location: United States
Device: Kindle 3G + WiFi
|
Quote:
|
|
04-10-2011, 03:26 PM | #10 |
Junior Member
Posts: 5
Karma: 10
Join Date: Apr 2011
Device: Kindle 3
|
kranu
With fit-to-screen the whole image is shown at once, so it is shown small. With fit-to-width the image is zoomed to the level at which it is spanned for the full width of the screen, so only part of the image is shown and you need to "scroll" it to see top/bottom parts of the image. |
04-11-2011, 01:58 AM | #11 | |
I <3 my Kindle
Posts: 528
Karma: 51332
Join Date: Nov 2010
Location: United States
Device: Kindle 3G + WiFi
|
Quote:
|
|
04-18-2011, 08:04 AM | #12 |
Connoisseur
Posts: 65
Karma: 4662
Join Date: Feb 2011
Location: CZ
Device: Kindle Touch 3G, Kindle Keyboard
|
Kindle will not break images to more pages. It works only for PDF. MOBI/PRC/AZW files are always processed to fit images on screen. They can be smaller, but not larger.
If you really need to read portait document in landscape I suggest to split images in 2 (or 3) pieces. This way you can control what is displayed. |
04-18-2011, 08:07 AM | #13 | |
Connoisseur
Posts: 65
Karma: 4662
Join Date: Feb 2011
Location: CZ
Device: Kindle Touch 3G, Kindle Keyboard
|
Quote:
Name of the last image is stored in a text file next to images. |
|
Tags |
bezel, kindle, landscape, margins, pdf |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle margins edit? | 3bayjunkie | Amazon Kindle | 3 | 01-01-2011 11:38 PM |
Troubleshooting The Obstinate Margins on PDFs and another big minor Problem ! | baccilus | Amazon Kindle | 13 | 11-26-2010 04:49 PM |
Problem With Margins Coverting Epub To Mobi | rhk001 | Calibre | 2 | 11-21-2010 08:17 PM |
Problem changing margins on an ePub | AnemicOak | ePub | 3 | 11-02-2009 04:30 PM |
A problem with Margins? What tool? | bar0n1 | LRF | 3 | 04-25-2009 12:30 PM |