![]() |
#271 |
Member
![]() Posts: 14
Karma: 10
Join Date: Jul 2011
Device: none
|
ashida$ java -Xms200M -Xmx300M -jar /Applications/LRFTools-0.9.236.jar convertPDF /Users/ashida/Desktop/DomeTome.pdf -d /Users/ashida/Desktop/a -SVG
java.lang.NullPointerException at lrf.pdf.PDF2SVG.recurse(PDF2SVG.java:30) at lrf.RecurseDirs.convertPDFActionParams(RecurseDirs .java:238) at lrf.RecurseDirs.<init>(RecurseDirs.java:91) at lrf.RecurseDirs.main(RecurseDirs.java:41) THis error is come while i am running this program |
![]() |
![]() |
![]() |
#272 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
As I read the syntax convertPDF want the directory of an argument thus is should read: java -Xms200M -Xmx300M -jar /Applications/LRFTools-0.9.236.jar convertPDF /Users/ashida/Desktop/
It died looking for a folder called: /Users/ashida/Desktop/DomeTome.pdf but the error checking for parsing input is basically non-existent. I have used the tool so I can't be much more helpful. Dale |
![]() |
![]() |
![]() |
#273 |
Member
![]() Posts: 14
Karma: 10
Join Date: Jul 2011
Device: none
|
Hi DalDe, Thank u so much for ur reply . found the error and executed.
converting pdf to Epub ----------------------------------- java -Xms200M -Xmx300M -jar /Applications/LRFTools-v0.9.160.jar convertPDF test -d test -SVG this command showing some error at org.pdfbox.pdmodel.font.PDType0Font.drawString(PDT ype0Font.java:75) at org.pdfbox.pdfviewer.PageDrawer.showCharacter(Page Drawer.java:160) at org.pdfbox.util.PDFStreamEngine.showString(PDFStre amEngine.java:409) at org.pdfbox.util.operator.ShowText.process(ShowText .java:64) at org.pdfbox.util.PDFStreamEngine.processOperator(PD FStreamEngine.java:452) at org.pdfbox.util.PDFStreamEngine.processSubStream(P DFStreamEngine.java:215) at org.pdfbox.util.PDFStreamEngine.processStream(PDFS treamEngine.java:174) at org.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawe r.java:104) at lrf.pdf.PDF2SVG.procPDF(PDF2SVG.java:91) at lrf.pdf.PDF2SVG.recurse(PDF2SVG.java:40) at lrf.RecurseDirs.convertPDFActionParams(RecurseDirs .java:223) at lrf.RecurseDirs.<init>(RecurseDirs.java:89) at lrf.RecurseDirs.main(RecurseDirs.java:39) Converting lrf to html -------------------------- java -Xms200M -Xmx300M -jar /Applications/LRFTools-v0.9.160.jar convertLRF test -d test -HTML -A4 Creating Pride and Prejudice.html...HTML Ok but this comment works... that is for converting lrf doc to html . difficult to convert pdf to epub. i have attached my pdf book Last edited by ashida; 07-12-2011 at 01:31 PM. |
![]() |
![]() |
![]() |
#274 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
sorry I don't know what the problem is but you have a correct syntax now I believe. As I said the author has no error checking so you just get unfiltered java errors. I suspect that the embedded fonts are giving you trouble as well as some complicated PDF page constructions. PDF is a very tough file type to convert to anything else. I would suggest you just save it as text and then convert the text. You will of course have to add formatting yourself.
Dale |
![]() |
![]() |
![]() |
#275 |
Member
![]() Posts: 14
Karma: 10
Join Date: Jul 2011
Device: none
|
ok.. Thank you for your help.. i will do that
![]() |
![]() |
![]() |
![]() |
#276 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2011
Device: none
|
Bad formatting in conversion from PDF to EPUB
I've converted from PDF to EPUB (both attached) but I lose all formatting from PDF. Please, see the examples.
How can I convert it without formatting loosing? Thanks, Diego |
![]() |
![]() |
![]() |
#277 |
Xtreme Quijote
![]() ![]() ![]() Posts: 101
Karma: 208
Join Date: Sep 2008
Location: La Mancha, Spain
Device: Sony PRS-505
|
This jar is intended to be run from command line. You can call from netbeans to the main function lrf.RecurseDirs.main passing a String[] holding command line arguments.
|
![]() |
![]() |
![]() |
#278 |
Member
![]() Posts: 14
Karma: 10
Join Date: Jul 2011
Device: none
|
Thank you. i run it from command line.... it is working.....
|
![]() |
![]() |
![]() |
#279 |
Member
![]() Posts: 14
Karma: 10
Join Date: Jul 2011
Device: none
|
|
![]() |
![]() |
![]() |
#280 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2011
Device: none
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A real PDF to epub/djvu/rtf/html software?. | DsOft | ePub | 35 | 01-02-2011 03:57 PM |
PRS-700 Unable to convert pdf to other formats (epub/rtf/doc) | testndtv | Sony Reader | 1 | 09-24-2010 01:45 PM |
How to create non-embedded Unicode EPUB,LRF,TXT,RTF,PDF | alexmobile | Sony Reader | 1 | 09-23-2009 10:04 PM |
Calibre PDF conversions - LRF/EPUB vs RTF | jackie_w | Calibre | 14 | 09-22-2009 03: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 02:55 AM |