06-23-2009, 01:25 PM | #271 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Per the Kindle Formatting blog (Sunday, June 14, 2009 - Kindle DX Image Test):
Quote:
|
|
07-18-2009, 10:20 PM | #272 |
Member
Posts: 10
Karma: 196
Join Date: Jul 2009
Device: Kindle 2
|
Great software. NR!
The 'Optimize PNG' parameter is supposed to shrink file size, right? I tried to convert a pdf file, one is on, one is off. The final .prc files are same size, although the temp .png file sizes are different. Is it because the final .prc file re-encode the png files to jpg? Is there a software can inspect .prc file? |
07-18-2009, 10:45 PM | #273 | ||
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Thanks, it was well written by Ashish Kulkarni and a pleasure to maintain!
Quote:
Quote:
|
||
07-19-2009, 09:15 PM | #274 |
Member
Posts: 10
Karma: 196
Join Date: Jul 2009
Device: Kindle 2
|
Nick, thanks for your response.
I purchased a Kindle 2 recently, and have read this forum thread through. I too found that Kindle 2 would display a blank page every 2 pages (I used mobi-prc, landscape-half to convert, so every 2 pages means 1 orginal page). I tried to use Calibre to create .mobi file from the temporary .html and .png files generated by PDFRead, it does NOT have the blank page problem. However, the TOC link does not work: Click any link, it will jump to end of the book. |
07-19-2009, 10:08 PM | #275 |
Member
Posts: 10
Karma: 196
Join Date: Jul 2009
Device: Kindle 2
|
More tests about Kindle 2 Blank Page:
According to this thread, Kindle 2 display area is 520x622. 622 is not multiple of 8, so I thought that might be the problem. Last night, I tried PDFRead to create .prc files with size 520x616, 520x618, 520x622, 520x624. All had blank pages problems except the 520x616. I was excited and thought I found the reason. But, today, I tried the 520x616 again, the blank page problem shows up too. I swear I saw it work fine yesterday. Last edited by hw360; 07-19-2009 at 11:34 PM. |
07-23-2009, 10:14 AM | #276 |
Member
Posts: 10
Karma: 196
Join Date: Jul 2009
Device: Kindle 2
|
More about the Kindle 2 Blank Page issue:
1. Kindle 2 "line space" setting matters. Press Shift+Alt+1 for best result. 2. In PDFRead, set Width and Height to 480,622. That will solve the blank page issue. |
07-23-2009, 10:19 AM | #277 |
Member
Posts: 10
Karma: 196
Join Date: Jul 2009
Device: Kindle 2
|
Hi- Nick,
Is there a way to manually set cropping border? I have a book that has page number printed on the most upper-left corner for each left-hand page, which makes auto-crop think it's a content and stop cropping. Thanks! |
07-23-2009, 10:21 AM | #278 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
So, if the width (480) is the culprit, then that "blank" page is the right margin going onto the next page and not the bottom margin being exceeded! What a find! All along we were looking for too long a picture and here it is that it's too wide a picture! That probably means that the Kindle 2 adds to any page left/right margins of 20px (i.e. 20+480+20 = 520). Any way to disable that using CSS/html code? At least there the work-around solution that you found! |
|
07-23-2009, 02:18 PM | #279 | |
Member
Posts: 10
Karma: 196
Join Date: Jul 2009
Device: Kindle 2
|
Quote:
The .prc books that I created by Calibre do not have TOC(table of content), so image 520x622 works fine. PDFRead created .prc file has TOC and <a> tags. It looks like Kindle 2 renders some space for <a> which causing a blank page before the first half image. The 2nd half image is usually smaller than 480 width, so no blank page. It could also be the first line indent of <p> tag. Last edited by hw360; 07-23-2009 at 02:31 PM. |
|
07-27-2009, 02:44 PM | #280 |
Member
Posts: 15
Karma: 10
Join Date: Dec 2003
Device: Toshiba E755
|
Deleting Blank Pages
Great program!! - One request, when saving, it seems pdfread will evaluate the page, and if the page is blank (empty), it discards the page and never saves it. Is it possible to have pdfread save the page as an image regardless if the page is empty? I have a process that is trying to match the PNG file to the page number, when pdfread deletes a page, my pages don't align.
Thanks for the consideration and assistance in advance. Laz. |
07-27-2009, 03:50 PM | #281 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
The reason I ask is that on non-windows machines, just changing the python scripts can be done locally quite easily (for your own use), whereas for windows you would have to install Active Python 2.5. I'll check to see if I can find where to patch the code and at the same time will look at fixing a sore spot, in my eyes, when the zooming in the remaining cropped text and it gets expanded more than double. It looks like a big blob when left in PDFRead and I've always wanted to fix that. However, my python skills have gotten rusty so this may take me more time than usual. Unless, someone who knows what to do steps up to the plate... |
|
07-27-2009, 04:57 PM | #282 | |
Member
Posts: 15
Karma: 10
Join Date: Dec 2003
Device: Toshiba E755
|
Quote:
Thanks, Laz. |
|
07-27-2009, 06:23 PM | #283 | |
Member
Posts: 15
Karma: 10
Join Date: Dec 2003
Device: Toshiba E755
|
Quote:
if sum(hist[:32]) < 10 or sum(hist[224:]) < 10: continue i think if i remove these, it will work. Installed ActiveState Phython 2.6.2.2, the next question, is how do i recompile ? can i run the patched version directly using the Phython Thanks, Laz. |
|
07-27-2009, 07:32 PM | #284 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
I removed those two lines and recompiled it. Just place the contents of dist.zip (two files) into the 'bin' folder in the PDFRead install directory overwriting the existing ones. If it works, then just retain those new files. If it doesn't just re-install. As for re-compiling the program to create a revised pdfread.exe, just place the below batch file (remove the .txt suffix) in the 'bin' directory along with a copy of the python scripts from the 'src' directory. Then double click the .bat file and after reviewing the errors messages, press any key to continue and the new pdfread.exe and library.zip will be copied there! I think you will need some dependent libs, but at the moment I can't recall. Ask for some assistance here, if you can't figure it out. Good luck! p.s. you can run the python scripts natively without compiling them (but there's no GUI); just follow the syntax displayed in the dos windows when you run the windows GUI and append those parameters to 'pdfread.py ', I think. It's been so long since I've had to do this... Last edited by nrapallo; 07-27-2009 at 07:38 PM. |
|
07-27-2009, 08:38 PM | #285 | |
Member
Posts: 15
Karma: 10
Join Date: Dec 2003
Device: Toshiba E755
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need help using PDFRead | daithi81 | Workshop | 8 | 10-16-2009 09:33 AM |
Need help with PDFRead | pfisterfarm | 8 | 03-23-2009 09:19 AM | |
pdfread cybook | x3oo | Cybook | 2 | 03-09-2009 11:49 AM |
PDFRead 1.7 released | ashkulz | 87 | 03-12-2008 10:29 AM | |
PDFRead v5 available on Sourceforge | Alexander Turcic | 3 | 04-08-2007 06:31 AM |