09-04-2008, 08:48 AM | #1 |
Xtreme Quijote
Posts: 101
Karma: 208
Join Date: Sep 2008
Location: La Mancha, Spain
Device: Sony PRS-505
|
LRFTools. Convert LRF to EPUB, HTML, PDF and RTF
Another tool, credits to scotty1024 (LRFParse.java), Bruno Lowagie (iText) and people at apache jakarta project, xHTMLRenderer project and others right now I cannot remember.
It can convert LRF files to RTF, PDF, HTML and EPUB. Also can merge LRF and PDF books in one big PDF with TOC, and merge EPUB files into one. And now you can view epub files (use page and key down/up). You can convert PDFs to EPUB using this tool. And starting at version 0.9.193, you can conver MS Word 2007 (docx) files to EPUB v0.9.204 can deal with all scrambled and/or compressed streams New version 0.9.236 use latest versions of pdfbox, iText and some other libs. For devs: LRFTools is now a Maven project. Usage: http://code.google.com/p/lrf-epub-tools/ Download: http://code.google.com/p/lrf-epub-tools/downloads/list ChangeLog: http://code.google.com/p/lrf-epub-tools/updates/list Last edited by elinares; 11-24-2009 at 08:22 AM. Reason: New Version 0.9.236 |
09-04-2008, 10:23 AM | #2 |
Guru
Posts: 753
Karma: 1496807
Join Date: Jul 2008
Location: The Third World
Device: iLiad + PRS-505 + Kindle 3
|
Genial!
I download a LRF from here, and I'll try it immediatly! |
Advert | |
|
09-04-2008, 10:30 AM | #3 |
Liseuse Lover
Posts: 869
Karma: 1035404
Join Date: Jul 2008
Location: Netherlands
Device: PRS-505
|
|
09-04-2008, 10:36 AM | #4 |
Guru
Posts: 753
Karma: 1496807
Join Date: Jul 2008
Location: The Third World
Device: iLiad + PRS-505 + Kindle 3
|
I'm unlucky...
Put the book in a dir called "a". Here's the output: Code:
Error occurred during initialization of VM Incompatible minimum and maximum heap sizes specified |
09-04-2008, 10:39 AM | #5 | |
Liseuse Lover
Posts: 869
Karma: 1035404
Join Date: Jul 2008
Location: Netherlands
Device: PRS-505
|
Quote:
As for images, it looks like they are preserved! Yay! Some of the formatting looked a bit weird in PDF but links work, the formatting looks better in RTF but I lost the links. Great effort! This totally should be a sticky post. Last edited by acidzebra; 09-04-2008 at 10:46 AM. |
|
Advert | |
|
09-04-2008, 10:46 AM | #6 |
Guru
Posts: 753
Karma: 1496807
Join Date: Jul 2008
Location: The Third World
Device: iLiad + PRS-505 + Kindle 3
|
Removed the option, here's the output:
Code:
Creando 2003.rtf...java.lang.NullPointerException at java.lang.StringBuffer.<init>(Unknown Source) at com.lowagie.text.Meta.<init>(Unknown Source) at com.lowagie.text.Header.<init>(Unknown Source) at com.lowagie.text.Document.addHeader(Unknown Source) at lrf.objects.Book.getRTF(Book.java:245) at lrf.parse.RecurseDirs.dumpToRTF(RecurseDirs.java:156) at lrf.parse.RecurseDirs.convertAction(RecurseDirs.java:204) at lrf.parse.RecurseDirs.<init>(RecurseDirs.java:108) at lrf.parse.RecurseDirs.main(RecurseDirs.java:33) RTF Error |
09-04-2008, 11:28 AM | #7 | |
Liseuse Lover
Posts: 869
Karma: 1035404
Join Date: Jul 2008
Location: Netherlands
Device: PRS-505
|
Quote:
Commandline: java -jar LRFTools.jar convert d:\export -RTF Where D:\export contained the lrfs (a single one to test, actually) java version "1.6.0_01" Java(TM) SE Runtime Environment (build 1.6.0_01-b06) Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing) So what command line and java version for you? |
|
09-04-2008, 11:33 AM | #8 |
Xtreme Quijote
Posts: 101
Karma: 208
Join Date: Sep 2008
Location: La Mancha, Spain
Device: Sony PRS-505
|
Yes, I must say you need a java VM version 1.6, and append also -Xmx100M. I'm going to edit initial post to reflect this.
|
09-04-2008, 11:35 AM | #9 | |
Xtreme Quijote
Posts: 101
Karma: 208
Join Date: Sep 2008
Location: La Mancha, Spain
Device: Sony PRS-505
|
Quote:
|
|
09-04-2008, 11:44 AM | #10 |
Guru
Posts: 753
Karma: 1496807
Join Date: Jul 2008
Location: The Third World
Device: iLiad + PRS-505 + Kindle 3
|
OK tried java -version:
Code:
java version "1.6.0_04" Java(TM) SE Runtime Environment (build 1.6.0_04-b12) Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing) |
09-04-2008, 11:44 AM | #11 | |
Xtreme Quijote
Posts: 101
Karma: 208
Join Date: Sep 2008
Location: La Mancha, Spain
Device: Sony PRS-505
|
Quote:
java -jar LRFTools.jar convert dir -PDF -RTF -catpar LRFTools try to concatenate these lines, but this is not always the best formatting... Last edited by elinares; 09-04-2008 at 11:46 AM. |
|
09-04-2008, 11:50 AM | #12 |
Guru
Posts: 753
Karma: 1496807
Join Date: Jul 2008
Location: The Third World
Device: iLiad + PRS-505 + Kindle 3
|
No luck with < java -Xms100M -Xmx100M -jar LRFTools.jar convert a -RTF > neither.
I'm trying this book here: https://www.mobileread.com/forums/sho...429#post246429 |
09-04-2008, 11:55 AM | #13 | |
Liseuse Lover
Posts: 869
Karma: 1035404
Join Date: Jul 2008
Location: Netherlands
Device: PRS-505
|
Quote:
I will reiterate, great tool - many many thanks. |
|
09-04-2008, 02:48 PM | #14 |
eBook Enthusiast
Posts: 120
Karma: 726
Join Date: Dec 2007
Location: US
Device: Sony PRS-350, Astak PocketPro, iPhone, Asus eee Pad Transformer
|
I'm trying it with no luck so far.
Running java -version, results in: Java(TM) SE Runtime Environment (build 1.6.0_07_b06) Java HotSpot(TM) Client VM (Build 10.0-b23, mixed mode, sharing) Trying to run the command: java -Xms100M -Xmx100M -jar LRFTools.jar convert h:\ebook Conversion\lrftools -RTF trying to get just an rtf output for a single lrf (Trumpet-Major.lrf) in the directory results in: java.lang.NullPointerException at lrf.parse.ResurseDirs.convertAction(RecurseDirs.ja va:186) at lrf.parse.ResurseDirs.(init)(RecurseDirs.java:108) at lrf.parse.ResurseDirs.main(RecurseDirs.java:33) Since I'm not a java-phile, I have no idea where to go from here. Any help out there? Thanks, Gene |
09-04-2008, 04:32 PM | #15 | |
Xtreme Quijote
Posts: 101
Karma: 208
Join Date: Sep 2008
Location: La Mancha, Spain
Device: Sony PRS-505
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A real PDF to epub/djvu/rtf/html software?. | DsOft | ePub | 35 | 01-02-2011 04:57 PM |
PRS-700 Unable to convert pdf to other formats (epub/rtf/doc) | testndtv | Sony Reader | 1 | 09-24-2010 02:45 PM |
How to create non-embedded Unicode EPUB,LRF,TXT,RTF,PDF | alexmobile | Sony Reader | 1 | 09-23-2009 11:04 PM |
Calibre PDF conversions - LRF/EPUB vs RTF | jackie_w | Calibre | 14 | 09-22-2009 04:06 PM |
[Old Thread] unable to convert ebooks(rtf, txt,lit,html,pdf) to lrf in calibre .4.131 | jackdeth191 | Calibre | 9 | 05-02-2009 03:55 AM |