Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Other formats > LRF

Notices

Reply
 
Thread Tools Search this Thread
Old 07-30-2007, 04:56 PM   #1
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
pdf2lrf

Part of libprs500 v0.3.81. It extracts the text from PDF files and converts them to LRF. Preserves bold and italics. See attached demo.

It doesn't support embedded images and results are not going to be satisfactory for complex PDF files. But for converting simple novels, it works great.

Linux users: If you want support for PDF links then you need to install poppler from CVS.

To use:
Code:
pdf2lrf "mybook.pdf"
Enjoy.
Attached Files
File Type: pdf mansf10p.pdf (1.06 MB, 4070 views)
File Type: lrf mansf10p.lrf (633.4 KB, 2678 views)

Last edited by kovidgoyal; 07-30-2007 at 05:02 PM.
kovidgoyal is offline   Reply With Quote
Old 07-30-2007, 05:54 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,845
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Would it be possible to have PDF2HTML so we can then edit the text/book how we want and then use html2lrf to create a properly formatted book?

And this is a great step forward for PDF conversion without the need for Acrobat.
JSWolf is offline   Reply With Quote
Advert
Old 07-30-2007, 06:05 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
pdftohtml is on your path in windows.
Code:
pdftohtml mybook.pdf
kovidgoyal is offline   Reply With Quote
Old 07-30-2007, 06:07 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,845
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kovidgoyal View Post
pdftohtml is on your path in windows.
Code:
pdftohtml mybook.pdf
Very nice! Thank you!
JSWolf is offline   Reply With Quote
Old 08-03-2007, 03:02 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Incidentally, is there some reason this thread isn't being made a sticky?
kovidgoyal is offline   Reply With Quote
Advert
Old 08-03-2007, 05:05 PM   #6
astra
The Introvert
astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.
 
astra's Avatar
 
Posts: 8,307
Karma: 1000077497
Join Date: Jan 2007
Location: United Kingdom
Device: Sony Reader PRS-650 & 505 & 500
Are there any instruction how to use this feature? Sort of help or FAQ?
astra is offline   Reply With Quote
Old 08-03-2007, 05:08 PM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Start up a terminal (Start->Run and type cmd.exe)
change to the directory of your pdf file
Code:
cd "c:\my directory"
pdf2lrf mybook.pdf
kovidgoyal is offline   Reply With Quote
Old 08-11-2007, 02:22 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,845
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kovidgoyal View Post
Incidentally, is there some reason this thread isn't being made a sticky?
Just got lost in the shuffle. It's stuck now.
JSWolf is offline   Reply With Quote
Old 08-11-2007, 02:27 PM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
thanks.
kovidgoyal is offline   Reply With Quote
Old 08-18-2007, 11:19 AM   #10
cirocco
Member
cirocco began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2007
Device: Kindle 4
foreign characters

Could you explain how to get correct non-english characters from pdf? I get strange results with polish language.
a word "CZĘŚĆ" is converted into:
<b>CZ </b><br>
<b>E ´S ´</b><br>
<b>C I</b><br>
cirocco is offline   Reply With Quote
Old 08-18-2007, 11:24 AM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Try the -enc switch of pdftohtml?
kovidgoyal is offline   Reply With Quote
Old 08-18-2007, 02:17 PM   #12
cirocco
Member
cirocco began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2007
Device: Kindle 4
Thanks, I tried it, but I can only get the error message:
Error: Couldn't find unicodeMap file for the 'iso-8859-2' encoding
Is there a list of encoding names?
cirocco is offline   Reply With Quote
Old 08-18-2007, 02:27 PM   #13
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I dont know, you'll have to contact the author of pdftohtml.
kovidgoyal is offline   Reply With Quote
Old 08-18-2007, 03:43 PM   #14
cirocco
Member
cirocco began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2007
Device: Kindle 4
Thanks for your input, I discovered that my pdf has embedded font without unicode map, which may be the reason of all problems and there is no easy way of fixing it :-(
cirocco is offline   Reply With Quote
Old 04-02-2008, 03:38 PM   #15
BlackVoid
Evangelist
BlackVoid ought to be getting tired of karma fortunes by now.BlackVoid ought to be getting tired of karma fortunes by now.BlackVoid ought to be getting tired of karma fortunes by now.BlackVoid ought to be getting tired of karma fortunes by now.BlackVoid ought to be getting tired of karma fortunes by now.BlackVoid ought to be getting tired of karma fortunes by now.BlackVoid ought to be getting tired of karma fortunes by now.BlackVoid ought to be getting tired of karma fortunes by now.BlackVoid ought to be getting tired of karma fortunes by now.BlackVoid ought to be getting tired of karma fortunes by now.BlackVoid ought to be getting tired of karma fortunes by now.
 
Posts: 415
Karma: 510423
Join Date: Nov 2006
Device: Sony PRS-505
This is a MESS.
Line breaks ignored.
Page breaks after 1-2 lines on a page, IN THE MIDDLE of the sentence.

BlackVoid is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting your PDF files to Kindle using PDF2LRF (Better than Amazon's conversion) guineapiguser Amazon Kindle 33 08-02-2011 06:07 PM
Classic PDF2LRF equivalent for PDF->EPUB? Waba Barnes & Noble NOOK 2 08-02-2010 05:56 PM
A suggestion to Pdf2lrf inew Sony Reader 3 10-08-2008 12:48 AM
PDF2LRF contribution fund for CACAPEE! skyd171 Sony Reader 1 01-31-2008 05:05 PM


All times are GMT -4. The time now is 02:57 PM.


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