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-12-2011, 10:42 AM   #271
ashida
Member
ashida began at the beginning.
 
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
ashida is offline   Reply With Quote
Old 07-12-2011, 11:55 AM   #272
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,653
Karma: 5072002
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
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
DaleDe is offline   Reply With Quote
Old 07-12-2011, 01:28 PM   #273
ashida
Member
ashida began at the beginning.
 
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
Attached Files
File Type: pdf DomeTome.pdf (9.87 MB, 282 views)

Last edited by ashida; 07-12-2011 at 01:31 PM.
ashida is offline   Reply With Quote
Old 07-12-2011, 01:41 PM   #274
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,653
Karma: 5072002
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
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
DaleDe is offline   Reply With Quote
Old 07-12-2011, 02:27 PM   #275
ashida
Member
ashida began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jul 2011
Device: none
ok.. Thank you for your help.. i will do that
ashida is offline   Reply With Quote
Old 07-13-2011, 05:47 PM   #276
dcavalcanti
Junior Member
dcavalcanti began at the beginning.
 
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
Attached Files
File Type: pdf VirtualDJ 7 - Audio Setup Guide.pdf (2.47 MB, 534 views)
File Type: epub VirtualDJ 7 - Audio Setup Guide.epub (2.24 MB, 207 views)
dcavalcanti is offline   Reply With Quote
Old 07-15-2011, 07:32 AM   #277
elinares
Xtreme Quijote
elinares doesn't litterelinares doesn't litterelinares doesn't litter
 
elinares's Avatar
 
Posts: 101
Karma: 208
Join Date: Sep 2008
Location: La Mancha, Spain
Device: Sony PRS-505
Quote:
Originally Posted by ashida View Post
added the LRFTools-0.9.236.jar in to netbeans. how to run the jar files.. or i have to write a seperate program using this? totally confused... i need to run this program..
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.
elinares is offline   Reply With Quote
Old 07-15-2011, 08:59 AM   #278
ashida
Member
ashida began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jul 2011
Device: none
Thank you. i run it from command line.... it is working.....
ashida is offline   Reply With Quote
Old 07-15-2011, 09:05 AM   #279
ashida
Member
ashida began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jul 2011
Device: none
Quote:
Originally Posted by dcavalcanti View Post
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
Even i have the same problem....the french pdf also having some font problem.
ashida is offline   Reply With Quote
Old 07-30-2011, 11:48 PM   #280
dcavalcanti
Junior Member
dcavalcanti began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2011
Device: none
Does anyone?

Quote:
Originally Posted by dcavalcanti View Post
I've converted from PDF to EPUB (both attached) but I loose all formatting from PDF. Please, see the examples.

How can I convert it without formatting loosing?

Thanks,
Diego
dcavalcanti 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
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


All times are GMT -4. The time now is 03:14 PM.


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