|  05-08-2009, 08:11 AM | #196 | ||||
| Xtreme Quijote    Posts: 101 Karma: 208 Join Date: Sep 2008 Location: La Mancha, Spain Device: Sony PRS-505 | Quote: 
 Quote: 
 Quote: 
 Quote: 
 Why p tags? Actually DIV tag is used instead of P... | ||||
|   |   | 
|  05-08-2009, 12:25 PM | #197 | 
| Xtreme Quijote    Posts: 101 Karma: 208 Join Date: Sep 2008 Location: La Mancha, Spain Device: Sony PRS-505 | 
				
				New Version 0.9.211
			 
			
			Uploaded new version 0.9.211. Check first post please. BUGS: Newline before italics and bolds. Some improvements converting lrf to epub and html. | 
|   |   | 
|  05-08-2009, 01:18 PM | #198 | 
| Xtreme Quijote    Posts: 101 Karma: 208 Join Date: Sep 2008 Location: La Mancha, Spain Device: Sony PRS-505 | |
|   |   | 
|  05-08-2009, 01:48 PM | #199 | 
| Guru       Posts: 976 Karma: 687 Join Date: Nov 2007 Device: Dell X51v; iLiad v2 | 
			
			This is some error log. The same lrf file, ok for v0.9.209, error for v0.9.211.  v0.9.211 does fix the break line problem. Thanx. Code: 
C:\Downloads\lrf\test> java -Xms200M -Xmx300M -jar LRFTools-v0.9.209.jar convert
LRF . -HTML
Creating Pride and Prejudice.html...HTML Ok
C:\Downloads\lrf\test> java -Xms200M -Xmx300M -jar LRFTools-v0.9.211.jar convert
LRF . -HTML
Creating Pride and Prejudice.html...HTML Error:
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
        at java.util.ArrayList.RangeCheck(Unknown Source)
        at java.util.ArrayList.get(Unknown Source)
        at com.lowagie.text.Paragraph.add(Unknown Source)
        at com.lowagie.text.HeaderFooter.paragraph(Unknown Source)
        at com.lowagie.text.html.HtmlWriter.initFooter(Unknown Source)
        at com.lowagie.text.html.HtmlWriter.close(Unknown Source)
        at com.lowagie.text.Document.close(Unknown Source)
        at lrf.objects.Book.getHTML(Book.java:203)
        at lrf.RecurseDirs.dumpToHTML(RecurseDirs.java:423)
        at lrf.RecurseDirs.convertAction(RecurseDirs.java:530)
        at lrf.RecurseDirs.convertActionParams(RecurseDirs.java:352)
        at lrf.RecurseDirs.<init>(RecurseDirs.java:89)
        at lrf.RecurseDirs.main(RecurseDirs.java:41)Last edited by ericshliao; 05-08-2009 at 01:51 PM. | 
|   |   | 
|  05-08-2009, 04:48 PM | #200 | 
| Guru       Posts: 976 Karma: 687 Join Date: Nov 2007 Device: Dell X51v; iLiad v2 | 
			
			It seems that web browser and mobipocket reader will give additional line space to tag <p>, so there will be additional space between two paragraphs. For tag <div>, the line space between two paragraphs is just the same as common lines. That's why I want tag <p>. Maybe it can be done by inserting addition attribute in <div>, but I don't know how. | 
|   |   | 
|  05-10-2009, 01:02 PM | #201 | 
| Connoisseur  Posts: 96 Karma: 14 Join Date: Mar 2009 Device: Kindle DX, PocketBook 360 | |
|   |   | 
|  05-10-2009, 03:30 PM | #202 | |
| Xtreme Quijote    Posts: 101 Karma: 208 Join Date: Sep 2008 Location: La Mancha, Spain Device: Sony PRS-505 | Quote: 
 | |
|   |   | 
|  05-10-2009, 05:26 PM | #203 | 
| Guru       Posts: 976 Karma: 687 Join Date: Nov 2007 Device: Dell X51v; iLiad v2 |  | 
|   |   | 
|  05-11-2009, 07:55 AM | #204 | |
| Banned        Posts: 475 Karma: 796 Join Date: Sep 2008 Location: Honolulu Device: Nokia 770 (fbreader) | 
			
			Just tried the newer LRFTools_gui on my linux box.  Running Java 1.6.0_10. Hangs, I'm afraid... Quote: 
 Any suggestions? m a r Last edited by rogue_ronin; 05-11-2009 at 07:59 AM. | |
|   |   | 
|  05-11-2009, 10:17 PM | #205 | 
| Connoisseur  Posts: 96 Karma: 14 Join Date: Mar 2009 Device: Kindle DX, PocketBook 360 | |
|   |   | 
|  05-12-2009, 03:56 PM | #206 | 
| Connoisseur  Posts: 96 Karma: 14 Join Date: Mar 2009 Device: Kindle DX, PocketBook 360 | 
			
			-rf a percentage of resistance to change size of font . What's that mean? Can I use this one to increase font size? Thanks. | 
|   |   | 
|  05-13-2009, 12:56 PM | #207 | |
| Xtreme Quijote    Posts: 101 Karma: 208 Join Date: Sep 2008 Location: La Mancha, Spain Device: Sony PRS-505 | Quote: 
 This is odd. (-rf number) parameter works this way: When on a paragraph the font size is changed from size 'a' to size 'b'; if this parameter is specified and 'b' is greather or lower than (1+number%)*a, then the size is changed; otherwise the size of the font is not changed. So, no, you cannot use this param to change font size, but this would not be difficult... | |
|   |   | 
|  05-13-2009, 03:12 PM | #208 | |
| Connoisseur  Posts: 96 Karma: 14 Join Date: Mar 2009 Device: Kindle DX, PocketBook 360 | Quote: 
 The A4 reflow works really well but if I can set a "% of font size increase" it will be even more useful. It tells how much I want the font come to bigger like 120%. It is not new font size. Thanks. | |
|   |   | 
|  05-13-2009, 08:31 PM | #209 | 
| Connoisseur  Posts: 96 Karma: 14 Join Date: Mar 2009 Device: Kindle DX, PocketBook 360 | 
			
			One more question: I compare the png result and PDF result and I found out the picture quality decreased a lot in PDF compare to png. How can I prevent that happen? Thanks. | 
|   |   | 
|  05-17-2009, 08:46 PM | #210 | 
| RSS &amp; Gadget Addict!  Posts: 82 Karma: 67 Join Date: May 2005 Location: Albuquerque, NM Device: Sony PRS-500, iPod Touch, iPhone | 
			
			First off, thanks for the great tool -- I've been using it for a while now with great success! Today I tried using 0.9.211 to convert a pdf to epub (this particular file works in calibre but formats poorly), but java appears to be throwing an exception on this file 411 pages in: Code: Desire:Downloads$ soylatte16-i386-1.0.3/jre/bin/java -Xms200M -Xmx300M -jar LRFTools-v0.9.211.jar convertPDF ~/Desktop/ -EPUB Loading 'In Death.pdf' 431 pages java.util.zip.ZipException: incorrect header check at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:147) at org.pdfbox.filter.FlateFilter.decode(FlateFilter.java:97) at org.pdfbox.cos.COSStream.doDecode(COSStream.java:290) at org.pdfbox.cos.COSStream.doDecode(COSStream.java:235) at org.pdfbox.cos.COSStream.getUnfilteredStream(COSStream.java:170) at org.pdfbox.pdmodel.common.COSStreamArray.getUnfilteredStream(COSStreamArray.java:200) at org.pdfbox.pdfparser.PDFStreamParser.<init>(PDFStreamParser.java:101) at org.pdfbox.pdmodel.common.COSStreamArray.getStreamTokens(COSStreamArray.java:141) at org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:202) at org.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:174) at org.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:110) at lrf.pdf.PDFSerializer.procPDF(PDFSerializer.java:91) at lrf.pdf.PDFSerializer.recurse(PDFSerializer.java:33) at lrf.RecurseDirs.convertPDFActionParams(RecurseDirs.java:242) at lrf.RecurseDirs.<init>(RecurseDirs.java:91) at lrf.RecurseDirs.main(RecurseDirs.java:41) Last edited by adinb; 05-17-2009 at 08:49 PM. | 
|   |   | 
|  | 
| 
 | 
|  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 |