View Single Post
Old 04-08-2014, 03:33 PM   #19
EbokJunkie
Addict
EbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blue
 
Posts: 229
Karma: 13495
Join Date: Feb 2009
Location: SoCal
Device: Kindle 3, Kindle PW, Pocketbook 301+, Pocketbook Touch, Sony 950, 350
Kindle PW leaves very big margins in PDF viewing. I suggest alternative way of preparing pdf with standard A4/Letter pages for successful viewing on PW. Suggested workflow prepares a sequence of graphic images of half-pages stretched to PW screen in landscape. Prepared images get wrapped into single mobi, that's it. This approach allows to use entire screen with almost zero margins.

1. Download pdflrfwin-0.99.exe from http://projects.mobileread.com/reade...rfwin-0.99.zip
2. Run pdflrfwin-0.99.exe, browse for your pdf (djvu is ok as well) and set output file extension to zip (do it by hand in corresponding output file box, just substitute zip for lrf)
3. In preview you can visually control and set margin crop. However, pdflrfwin automatically crops white space around text, this is preferable for this workflow. Set Overlap to something around 0.05, this may improve reading experience.
4. Run pdflrfwin. It creates zip file with png images representing snapshots of half-pages rotated in landscape orientation.
5. Open zip file and place all png images in separate folder.
6. Install Python 2.7.6
7. Download KindleComicParser 0.2.1.zip from here , post #36 by Dc5e. Extract KindleComicParser.exe from zip.
8. Download last version of kindlegen.exe
9. Download kindlestrip.py 1.35 zip from here and extract Python script kindlescript.py.
10. Create batch file and name it, say, pdflrf2mobi.bat:
Code:
set comicname=%1
set comicname=%comicname:"=%
KindleComicParser.exe "%comicname%"
kindlegen -c0 "%comicname%.opf" -o out.mobi
python "%~dp0kindlestrip.py" out.mobi "%comicname%.mobi"
del out.mobi
:: If uncommented last Calibre command automatically set mobi title and author name (author name must be second parameter in batch call)
::ebook-meta "%comicname%" -t "%comicname%.mobi" -a %2
.
10. Create any folder, place path to this folder into environment variable PATH.
11. Place files KindleComicParser.exe, kindlegen.exe, kindlestrip.py, and batch pdflrf2mobi.bat to created folder.
12. Make folder with png files (see paragraph 5 above) current.
13. Run
Code:
pdflrf2mobi "name_of_output_document" "optional author name"
Second parameter is optional, it works if last line in the batch file is uncommented.
File name_of_output_document.mobi will appear in the folder with png files.
Note that pdflrfwin tries to cut pages between lines of text. However, in rare occasions it cuts big formulas and illustration lengthwise, that may be cause of certain inconveniences.
Sample (PW cscreenshot):
Attached Thumbnails
Click image for larger version

Name:	screenshot_2014_04_08T11_29_22-0701.png
Views:	430
Size:	90.3 KB
ID:	121432  

Last edited by EbokJunkie; 04-08-2014 at 03:35 PM.
EbokJunkie is offline   Reply With Quote