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 03-02-2009, 05:04 AM   #121
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 hybernation View Post
I tried to post this on Google Code but for some reason after typing in the whole thing, the submit button wasn't enabled! :-)

What steps will reproduce the problem?
1. download this free ebook: http://www.pyrsf.com/crookedletterPDF.html
2. run the command
3. see stack trace below

What is the expected output? What do you see instead?

C:\LRFTools>java -Xms200M -Xmx300M -jar LRFTools-v0.9.175.jar convertPDF CL
Loading 'CrookedLetterSmall.pdf' 519 pages -java.lang.ArrayIndexOutOfBoundsExcep
tion:
...
I see same error. Working on... found BUG and commited to googlecode.

Last edited by elinares; 03-02-2009 at 05:13 AM.
elinares is offline   Reply With Quote
Old 03-02-2009, 05:30 AM   #122
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
New Version 0.9.183

Uploaded to google (see first post)
LRFTools v0.9.183
Corrected BUG reported by hybernation (thanks)
Use “ and ”
elinares is offline   Reply With Quote
Advert
Old 03-02-2009, 08:48 AM   #123
rcuadro
Wizard
rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.
 
rcuadro's Avatar
 
Posts: 1,686
Karma: 874275
Join Date: Nov 2008
Location: Virginia Beach, VA
Device: Kindle DX
Here is something that i cant figure out. I run LRFTools with the view option and it opens up just fine. I can navigate to a certain LRF... but then I cant do anything else. How do I get it to open the LRF?
I am on a Mac if it makes a difference.
rcuadro is offline   Reply With Quote
Old 03-02-2009, 07:19 PM   #124
tarifelagund
Member
tarifelagund began at the beginning.
 
Posts: 24
Karma: 10
Join Date: May 2008
Device: Sony PRS-505
Hi,
I'm not tech-savvy at all so please bear with me!
I took it that I needed to run the prob through cmd line on my windows vista, but I got this result.

Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\Vista>java -Xms200M -Xmx300M -jar LRFTools-v0.9.183.jar convert "C:\Use
rs\Vista\Documents\My Library\Larissa Ione" -RTF
Unable to access jarfile LRFTools-v0.9.183.jar

I tried using the GUI thingy to even less success as I couldn't even figure out how to open the thing after downloading it!

Where did I go wrong??
Is there a specific place that I need to download the jar file to? I just have it in my downoads folder.

thanks!
tarifelagund is offline   Reply With Quote
Old 03-03-2009, 04:30 AM   #125
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 tarifelagund View Post
Hi,
I'm not tech-savvy at all so please bear with me!
I took it that I needed to run the prob through cmd line on my windows vista, but I got this result.

Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\Vista>java -Xms200M -Xmx300M -jar LRFTools-v0.9.183.jar convert "C:\Use
rs\Vista\Documents\My Library\Larissa Ione" -RTF
Unable to access jarfile LRFTools-v0.9.183.jar

I tried using the GUI thingy to even less success as I couldn't even figure out how to open the thing after downloading it!

Where did I go wrong??
Is there a specific place that I need to download the jar file to? I just have it in my downoads folder.

thanks!
You must full qualify path of jarfile. On your example the only way to work is copying the jarfile on "C:\Users\Vista". If you have the jarfile on "c:\jars\LRFTools-v0.9.183.jar" then your command line must be:

C:\Users\Vista>java -Xms200M -Xmx300M -jar c:\jars\LRFTools-v0.9.183.jar convert "C:\Users\Vista\Documents\My Library\Larissa Ione" -RTF
elinares is offline   Reply With Quote
Advert
Old 03-03-2009, 09:34 AM   #126
tarifelagund
Member
tarifelagund began at the beginning.
 
Posts: 24
Karma: 10
Join Date: May 2008
Device: Sony PRS-505
I switched the file over to C:\Users\Vista\LRFTools-v0.9.183.jar, but it still does not work...

C:\Users\Vista>>java -Xms200M -Xmx300M -jar C:\Users\Vista\LRFTools-v0.9.183.jar
convert "C:\Users\Vista\Documents\My Library\Larissa Ione" -RTF
'-Xms200M' is not recognized as an internal or external command,
operable program or batch file.
tarifelagund is offline   Reply With Quote
Old 03-03-2009, 10:28 AM   #127
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 tarifelagund View Post
I switched the file over to C:\Users\Vista\LRFTools-v0.9.183.jar, but it still does not work...

C:\Users\Vista>>java -Xms200M -Xmx300M -jar C:\Users\Vista\LRFTools-v0.9.183.jar
convert "C:\Users\Vista\Documents\My Library\Larissa Ione" -RTF
'-Xms200M' is not recognized as an internal or external command,
operable program or batch file.
Delete '>' from start of command.
elinares is offline   Reply With Quote
Old 03-04-2009, 08:26 AM   #128
tarifelagund
Member
tarifelagund began at the beginning.
 
Posts: 24
Karma: 10
Join Date: May 2008
Device: Sony PRS-505
Quote:
Originally Posted by elinares View Post
Delete '>' from start of command.
I did as you suggested and deleted >, but it still does not work!


C:\Users\Vista>java -Xms200M -Xmx300M -jar C:\Users\Vista\LRFTools-v0.9.183 conv
ert C:\Users\Vista\Documents\LRF -html
Unable to access jarfile C:\Users\Vista\LRFTools-v0.9.183

sigh... this is sooo difficult! sorry!!
tarifelagund is offline   Reply With Quote
Old 03-04-2009, 08:48 AM   #129
rcuadro
Wizard
rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.
 
rcuadro's Avatar
 
Posts: 1,686
Karma: 874275
Join Date: Nov 2008
Location: Virginia Beach, VA
Device: Kindle DX
Quote:
Originally Posted by tarifelagund View Post
I did as you suggested and deleted >, but it still does not work!


C:\Users\Vista>java -Xms200M -Xmx300M -jar C:\Users\Vista\LRFTools-v0.9.183 conv
ert C:\Users\Vista\Documents\LRF -html
Unable to access jarfile C:\Users\Vista\LRFTools-v0.9.183

sigh... this is sooo difficult! sorry!!
I found it easier to have the command window starting at the same directory at the LRFTools file is. You also forgot the jar extension... ie LRFToolsv0.0.183.jar
rcuadro is offline   Reply With Quote
Old 03-04-2009, 03:17 PM   #130
tarifelagund
Member
tarifelagund began at the beginning.
 
Posts: 24
Karma: 10
Join Date: May 2008
Device: Sony PRS-505
OH! Stupid of me! Sorry!!
I got as far as:
Quote:
C:\Users\Vista>java -Xms200M -Xmx300M -jar C:\Users\Vista\LRFTools-v0.9.183\LRFT
ools-v0.9.183.jar convert C:\Users\Vista\Documents\LRF -html
Usage:
java -Xms200M -Xmx300M -jar LRFTools-vx.y.z.jar action (params)

Note: Java VM gets 200MB minimun, 300 maximun memory to work. If you plan to
convert only a few books, you can reduce significantly these values (40,60).

Actions:

1) convertLRF dir (-d dirOut |-z zipfile) (-XML|-PDF|-RTF|-HTML|-EPUB) (options)


Converts to XML, PDF, RTF and/or HTML every LRF file in 'dir' recursively.
You can specify more than one format conversion simultaneously.
Converted files go to the same place as original, except if you specify
'-z zipfile', then go to zipfile; or '-d dir', then output files are created
in dirOut replicating the same original directory tree structure.

(options) one or more of:

-A4 : Means normal paper size (trying to reflow)

-rf nn : Fonts Sizes, nn is a percentage of resistance to change size of font

-catpar str: Try to merge paragraphs not ending with '.', ':','?' this way:
para1+str+para2

-repl "str1" "str2" : Replace instances of str1 (in a block) for str2

-noo : No overwrite existing files.

-noe : No Embed OTF fonts on epub files.

-nopb: Do not emit page breaks.

You cannot output HTML files to a zipfile right now.

2) convertPDF dir (-d dirOut) [-noo|-SVG|-noe|-nopb]

Converts every PDF in 'dir' (with recursion) to EPUB format.
-SVG means use batik to generate Scalable Vector Graphics for each page
Other options same as convertLRF.

3) view

Shows GUI to view epub files.

4) updfmd dir

Search dir recursively, expecting PDF filenames 'BookAuthor-BookTitle.pdf'
and modifies metadata of PDF to reflect BookAuthor and BookTitle so our
Sony PRS can catalog the book conveniently.

5) mergePDF dir -o grouped.pdf

Merge all PDF and LRF files contained at dir (with recursion) into one new
PDF file with a TOC pointing to each old single document. LRF files are
converted first to PDF.

6) mergeEPUB dir -a author -t title -o grouped.epub

Merge all EPUB files contained at dir (with recursion) into one new EPUB
file with a TOC pointing to each old single document.
What's the next step?

Thanks so much for your patience!
tarifelagund is offline   Reply With Quote
Old 03-04-2009, 10:42 PM   #131
rcuadro
Wizard
rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.
 
rcuadro's Avatar
 
Posts: 1,686
Karma: 874275
Join Date: Nov 2008
Location: Virginia Beach, VA
Device: Kindle DX
Here is how I got it to work... I made a directory in the C drive called C:\LRFTools and another one called c:\eBooks (I put the books I wanted to convert here)
I also renamed the jar file to simply LRFTools.jar to make it easier on me

1. Start --> Run --> command
2. cd LRFTools
3. java -Xms200M -Xmx300M -jar LRFTools.jar convert c:\eBooks -EPUB
4. Whala!! LRFTools converted the books I had in the eBook directory to epub.

Hope this helps out a bit
rcuadro is offline   Reply With Quote
Old 03-06-2009, 07:23 PM   #132
tarifelagund
Member
tarifelagund began at the beginning.
 
Posts: 24
Karma: 10
Join Date: May 2008
Device: Sony PRS-505
Thanks for everything, but I think I'm destined never to figure this program out... >__<!!
tarifelagund is offline   Reply With Quote
Old 03-06-2009, 08:05 PM   #133
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
New version 0.9.193 docx2epub

I'm been looking for a epub "editor", to beautify some of my books (you know, some images, TOC and so on), but I've not found a reasonable way to build it... My company bought a MS Office 2007 license for me, so I decided to incorporate to LRFTools docx2epub capabilities (I'm starting to think that 'LRFTools' is not a good name, but...)

A new command has been added: convertDOCX (similar to convertPDF). For now it supports TOC, links, build a epub NavMap using Heading styles, images and tables. It produces well-formed epub files, splitting xhtml files as usual (below 180KB each so our devices can read it fast).

DOCX files follows OpenXML standard. I don't know if Macs or Linuxes have tools for editing this, sorry for that.

Enjoy,
Eladio
elinares is offline   Reply With Quote
Old 03-06-2009, 11:31 PM   #134
rcuadro
Wizard
rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.rcuadro ought to be getting tired of karma fortunes by now.
 
rcuadro's Avatar
 
Posts: 1,686
Karma: 874275
Join Date: Nov 2008
Location: Virginia Beach, VA
Device: Kindle DX
Quote:
Originally Posted by tarifelagund View Post
Thanks for everything, but I think I'm destined never to figure this program out... >__<!!
If you type java -version in the command prompt, does it say 1.6?
rcuadro is offline   Reply With Quote
Old 03-07-2009, 06:51 AM   #135
knurps
Junior Member
knurps began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2007
Device: none
This happens to all books (various sources) I try to convert:

Code:
C:\LRF\2>java -Xms200M -Xmx300M -jar "c:\LRF\LRFTools.jar" convertLRF "c:\LRF\2" -HTML
Creating test.html...HTML Error:
java.lang.NullPointerException
        at java.lang.StringBuffer.<init>(Unknown Source)
        at com.lowagie.text.Meta.<init>(Unknown Source)
        at com.lowagie.text.Document.addAuthor(Unknown Source)
        at lrf.objects.Book.getHTML(Book.java:194)
        at lrf.RecurseDirs.dumpToHTML(RecurseDirs.java:376)
        at lrf.RecurseDirs.convertAction(RecurseDirs.java:483)
        at lrf.RecurseDirs.convertActionParams(RecurseDirs.java:308)
        at lrf.RecurseDirs.<init>(RecurseDirs.java:87)
        at lrf.RecurseDirs.main(RecurseDirs.java:39)
Test above was done with a random short book from the download section.

(To avoid any side effects I put it in a path without spaces and changed all names to a simple 8.3 scheme.)

Java version should be the newest 1.6:

Code:
>java -version
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)
LRFTools Version: v0.9.183 (same error with 0.9.193, just different line numbers)

OS: Windows XP

There is only one lrf in c:\LRF\2, using "-Xms40M -Xmx60M" or changing the output format doesn't change anything.

Using a non-existent path results in a very similar error ("java.lang.NullPointerException" and last 4 lines exactly the same as above). It does print the Usage info in addition though.

Anything I am doing wrong?

Last edited by knurps; 03-07-2009 at 06:53 AM.
knurps 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 02:07 PM.


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