View Single Post
Old 05-08-2009, 08:11 AM   #196
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 alxwang View Post
Nice.
One more question: Is that possible to re-layout the text based LRF to other size. LRF is for 6 inch screen. Can LRFtool generate 10 inches PDF ?
Thanks
I'll take a look this weekend.

Quote:
Originally Posted by patricks View Post
Hi, I'm having trouble using this program to convert from LRF to PDF
It works fine for EPUB with the following instructions:

java -Xms200M -Xmx300M -jar LRFTools-v0.9.209.jar convertLRF c:\eBooks -EPUB

But with PDF at the end it returns the error, "The name 'P103' has no local destination." And the pdf file it creates won't open in acrobat- "The file is damaged and could not be repaired." Other than replacing EPUB with PDF the lines are the same.
Can anyone point out what I'm doing wrong?
Well, this mean page 103 has no anchor destination. It's a bug. Could you pm a link for the lrf?

Quote:
Originally Posted by patricks View Post
Just tried it on the mac side,used "java -Xms200M -Xmx300M -jar LRFTools-v0-1.9.209.jar convertLRF cd /eBooks/ -EPUB"
and got the following error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java :675)
at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader .java:260)
at java.net.URLClassLoader.access$100(URLClassLoader. java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java: 195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 16)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:280)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 51)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:374)
You must use a JVM 1.6 on Mac.

Quote:
Originally Posted by ericshliao View Post
Hi,
I am using LRFTools 0.9.209 to convert some lrf files to html. I found one minor problem:
The generated html will break line automatically for italic font-style text.
You can see from my attached html file and screenshot.

I don't think it's the problem of LRFTools. It should be the problem of browser (I tried it with IE and Firefox).

I can fix this problem by manually removing:
Code:
		</div>
		<div align="Justify">
That's not an elegant way.

I am wondering if this problem might be fixed by LRFTools by properly detecting paragraph and insert <p> tag (or something else), so I raise this issue.
Due to copyright concern, I can't distribute this lrf file to public. If you do need one to analyze the problem, I will try to find a free lrf file with the same problem.

Added:
I roughly browsed several html files generated from lrf, there is a common problem: no paragraph tag. IMHO, adding paragraph tags will make a better conversion.
Fixed italic problem. I'm gong to publish new version tomorrow with this.
Why p tags? Actually DIV tag is used instead of P...
elinares is offline   Reply With Quote