|
|
View Full Version : Converting your PDF files to Kindle using PDF2LRF (Better than Amazon's conversion)
guineapiguser 01-13-2008, 04:19 PM Hey,
As an former Sony Reader I frequently used a program called PDF2LRF which I found to be the best PDF converter too because it specifically increased the contrast for text/ images to make them more readable on our eReader screens (which default converters don't do)
I came up with a straightforward workflow to convert PDFs to Kindle format which also bypasses Amazon's service. Note: this works best for image based/ or text +image based pdfs or if you want to preserve PDF formatted.
PDF to Kindle Workflow:
The workflow I've come up with is this.
1) Use PDF2LRF to input the PDF and output to a .zip file filled with PNG files. (I have to use PDF2LRF in command line format to accomplish this).
link: http://www.mobileread.com/forums/showthread.php?t=13135 (download the command line program). Use command:
" pdf2lrf -i INPUT_PDF_FILENAME.pdf -o OUTPUT_PDF_FILENAME.zip " (which generates a zip file of PNG images from PDF)
2) Then use the program that jbenny posted (PNG2PDF) to generate a PDF file in commandline from the Zip files
LINK: http://www.mobileread.com/forums/showthread.php?t=13135&page=18 (scroll down and download the file PNG2PDF.zip) Type this command in command line prompt:
" png2pdf OUTPUT_PDF_FILENAME.zip "
This generates a file called: OUTPUT_PDF_FILENAME_png.PDF
3) Afterwards, I run Mobipocket Creator to import PDF file and output to .PRC format which is then readable with the Kindle.
download link: http://www.mobipocket.com/en/DownloadSoft/ProductDetailsCreator.asp
Use option: Import PDF file: OUTPUT_PDF_FILENAME_png.PDF in Mobipocket Creator program (free), then after setting the Metadata, click Publish, to generate PRC file.
4) Move the generated .PRC file to your Kindle and enjoy it.
Note: you can fiddle with the PDF2LRF settings but I found the default settings worked pretty well.
Note: The advantage of this is I don't have to email the file to Amazon at all to get it converted and readable on kindle! (Since Gmail's 20 meg limit which I find quite limiting). And best of all the output is split nicely with high contrast, 2 pages/ landscape rotated which makes it as readable as on my Sony device compared to Amazon's default PDF conversion.
Summary: PDF -> PDF2LRF -> PNG2PDF -> MobiPocket Creator -> Kindle.
lovebeta 01-14-2008, 08:49 AM You don't need to convert the PNGs to PDF. You can just use the hidden Picture viewer to view the folder of pngs as a book. I am doing this because Kindle does not support chinese natively so I am forced to view it as "picture".
DMcCunney 01-14-2008, 10:37 AM Summary: PDF -> PDF2LRF -> PNG2PDF -> MobiPocket Creator -> Kindle.MobiPocket Creator takes a PDF file as input. Do you even need PDF2LRF and PNG2PDF in the flow?
_____
Dennis
lovebeta 01-14-2008, 06:26 PM MobiPocket Creator takes a PDF file as input. Do you even need PDF2LRF and PNG2PDF in the flow?
_____
Dennis
I think the advantage of PDF2LRF is the reflow control. mobipocket's pdf import function is pretty primitive and it is really bad if there's embedded pictures etc. I guess that's why OP need to PDF2PND2PDF2Mobi
guineapiguser 01-15-2008, 06:04 PM Since most viewers don't understand why it's better to do all this extra process work, I took a few screenshots.
Please look at attached:
PDF options that I've tried:
1)
When I first sent the original PDF directly to Amazon, all image info was lost, while the text converted fine. This sucks because maps are gone (leaving me lost)
2)
The second one, I had to convert the PDF to be image based, (turned it into a 20 meg file) and then emailed it to Amazon to be converted. The result is much better in that the result looks like the original PDF, but as you can see, the text is not optimized for the reader and it is hard to read smaller text. Also all maps (non-standard images) were badly resized to be very small making them unusable. (bad image fidelity)
3)
The third one, which I processed using the PDF2LRF -> PNG2PDF -> Mobi Creator is the best in that it replicates the look of the original PDF (image based) and more importantly, it bypasses having to attach/ email to Amazon, wait 1 hour, transfer back, which is bad for large files > 20 megs. With PDF2LRF, everything including text/borders etc... is optimized to be more readable on ebook readers then default because the program increases the contrast for text.
Also, concerning LoveBeta's response, using the PNG viewer doesn't work too well when you have hundreds of PNG images (due to the number of pages in a PDF). Having a converted .PRC file allows you to bookmark your books while images can't be.
In summary, my basic goal is to view PDFs on the Kindle as similar as the original PDF and this is the best solution I've found so far.
snookums 01-15-2008, 07:22 PM I don't suppose someone could post a Mac version of pdf2lrf?
zeellig 04-21-2008, 07:44 PM How do you handle TOC generation? If no TOC, don't you find it too limiting?
nrapallo 04-21-2008, 11:00 PM Why not use PDFRead 1.8.2 located here (http://www.mobileread.com/forums/showthread.php?t=21906).
It converts directly from .pdf to .prc using a simple GUI! (GUI for Windows users only). It supports TOC, dilation of text, auto-cropping, edge enhancement, landscape/portrait modes, etc.
It is also possible to leave the converted images and .html behind after the conversion is done. Also a .opf is provided to allow further tweaks using Mobipocket Creator.
Give it a try.
zeellig 04-22-2008, 01:18 PM nrapallo! pdfread is EXACTLY what I am looking for. Thanks for chiming in.
nrapallo 04-22-2008, 02:19 PM nrapallo! pdfread is EXACTLY what I am looking for. Thanks for chiming in.
Hate to steal someone else's thunder, but it did seem a good fit for you! Tell me what you like or don't, after you have gone through a few conversions; preferrably over at the PDFRead thread.
DataWhore 06-20-2008, 07:54 PM I have a pretty big eBook I'm trying to do this with, and I'm getting an error "Illegal System DLL Relocation - pdf2xml".
When I look at the process, it just keeps eating up more and more RAM, then moves on to the pagefile, then I get this message. So I have no way of going from PDF -> PRC right now.
Also, PDFRead is excessively slow it would take a day for this one PDF.
Anyone have any ideas?
cchen921 06-22-2008, 04:26 AM guineapiguser, in your workflow, I couldn't even get past the first. I am completely new and I just wanted to read some of my scanned pdfs on my kindle. I used pdflrf through the link you provided. I noticed you kept saying "pdf2lrf" and not "pdflrf," is there a difference? anyways, I typed in pdflrf -i A.pdf -o A.zip, wait for 45 minutes, and then I get a zip file. What's funny is that Winrar doesn't read it, and I tried to jump directly to png2pdf and it gave me error messages. Here's what I got:
Archive: 1orif.zip
End-of-central-directory signature not fo
a zipfile, or it constitutes one disk of
latter case the central directory and zip
the last disk(s) of this archive.
unzip: cannot find zipfile directory in 1o
and cannot find 1orif.zip.zip, peri
C:\PDF2>for %A in (PNGs\*.png) do convert %
Error: Failed to open PDF file:
PDFs\*.pdf
Errors encountered. No output created.
Done. Input errors, so no output created.
So this is the second part of the workflow, I'm not even sure if I did the first part right. Please help anyone that has done this succesfully. I just got the kindle and would like to read scanned pdfs on it. Just scanned, I don't want any ocr because there are just way too many errors on there. Just wanted to read the pictures. Thanks!
ninjapanzer 01-11-2009, 05:14 AM I admit that MobiPocket Creator is still my choice for dealing with PDF files that have necessary images. Most of the books I convert do not have images and for those I have found that using mobigen is excellent. Of course getting the pdf to mobigen is fun. So I use PDF2HTML. This has been great so far for most PDFs. I actually integrated this into a script along with some other document conversion. Its up on sourceforge. Its simple to use and its appropriate if you have an eReader that supports mobi format like a kindle for example which is what the program is named after but it just creates flat mobi files without images. Heres the link Enjoy
Project Page http://sourceforge.net/projects/autokindle/ (http://sourceforge.net/projects/autokindle/)
Download http://sourceforge.net/project/platformdownload.php?group_id=248415 (http://sourceforge.net/project/platformdownload.php?group_id=248415)
Adeel Ahmed 05-21-2009, 12:01 PM I coudn't find pdf2lrf command line version. I downloaded it but that is a GUI version and produces lrf file. I you can convert a pdf to prc for my newly purchased kindle. Please help me. My email is chadeelmehr@yahoo.com. Please its urgent.
Adeel Ahmed 05-21-2009, 12:32 PM I have bought new kindle and have problem converting my 100 page pdf to kindle format. I have much tried your four step process but I fail on very first step i.e converting pdf to png. I downloaded pdf2lrf but it produces a lrf file and not png zip file. Can you please do it for me if I send you the PDF? I would be graeatful to you. My email is chadeelmehr@yahoo.com. I am waiting for your reply. Please its urgent
daffy4u 05-21-2009, 12:47 PM Adeel, do you have a Kindle 1 or a Kindle 2?
amoln82 07-28-2009, 06:22 PM How do I download PDF2LRF?
The link shows that the file is removed by administrator
amoln82 07-28-2009, 08:03 PM never mind my above post
Have another question
In he second step PNG2PDF I encounter the following error:
Error Failed to open PDF file:
PDFs\*.pdf
Errors encountered. No output created.
Done. Input errors, so no output created
How can I solve that. A reply is really appreciated
Pradiphk 10-28-2009, 06:19 AM Hi,
Anybody help me to downlaod the PDF2LRF Dos version. I am not able to download the files from http://www.mobileread.com/forums/showthread.php?t=13135. The files are taken down I guess. Please help.
zh_mn 10-28-2009, 11:33 AM can sony prs 600 use this toos? tks
seiji 11-18-2009, 02:07 AM never mind my above post
Have another question
In he second step PNG2PDF I encounter the following error:
Error Failed to open PDF file:
PDFs\*.pdf
Errors encountered. No output created.
Done. Input errors, so no output created
How can I solve that. A reply is really appreciated
Hi, I also have the same problem. Did you manage to find a solution, mate?
I got a Kindle to read science papers (I'm a uni student in Australia) and haven't been able to read equations on it... kinda sad... I wish the Amazon team would fix this glitch already.
|