davideuler / chm2pdf

Automatically exported from code.google.com/p/chm2pdf
GNU General Public License v2.0
0 stars 0 forks source link

HTML Error #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. converting to PDF
2.
3.

What is the expected output? What do you see instead?
PDF version of CHM file

What version of the product are you using? On what operating system?
latest on Ubuntu Linux 7.10

Please provide any additional information below.
upon running >  sudo /usr/bin/chm2pdf --book myChm.chm newPdf.pdf. I get
the error > ERR011: Unable to parse HTML element on line 512!
ERR002: Error: no pages generated! (did you remember to use webpage mode?
. This si odd cos the CHM in question is a BOOK, and not a webpage...

Original issue reported on code.google.com by taku...@gmail.com on 13 Feb 2008 at 7:33

GoogleCodeExporter commented 9 years ago
The same here... 

Original comment by amr.el.s...@gmail.com on 21 Feb 2008 at 3:55

GoogleCodeExporter commented 9 years ago
What happens using webpage mode?

Original comment by devicera...@gmail.com on 13 Mar 2008 at 7:09

GoogleCodeExporter commented 9 years ago
If I use WebPage mode, it gives me the same error message, but tells me that the
webpage MIGHT be a book

Original comment by taku...@gmail.com on 14 Mar 2008 at 12:47

GoogleCodeExporter commented 9 years ago
http://ftp.frugalware.org/pub/frugalware/frugalware-current/source/xapps-extra/c
hm2pdf/webpage.diff

this is the patch we use in Frugalware. the trick is that the webpage option 
should
be the last one ;)

Original comment by vmik...@frugalware.org on 8 May 2008 at 11:57

GoogleCodeExporter commented 9 years ago
how do I apply the patch??

Original comment by taku...@gmail.com on 9 May 2008 at 10:39

GoogleCodeExporter commented 9 years ago
I have some doubts on the patch. Doesn't this override when someone wants to 
use the
--book option?

Original comment by devicera...@gmail.com on 13 May 2008 at 8:12

GoogleCodeExporter commented 9 years ago
You can correct the HTML problem that caused the error by first using the
--extract-only option to extract the HTML files from the CHM, then correct the 
HTML
files, then use the --dontextract option to convert the already extracted and
corrected files into a single PDF. How to do all this is explained in an 
example for
 similar problems in:

http://www.karakas-online.de/forum/viewtopic.php?t=11078
http://www.karakas-online.de/forum/viewtopic.php?t=10965
http://www.karakas-online.de/forum/viewtopic.php?t=10275

Note: We can do nothing about such "bugs" because the errors are reported to 
chm2pdf
by htmldoc. Thus if htmldoc says it is "unable to parse HTML element on line 
XXX",
then you have to find line XXX in the HTML file(s) and correct it. The 
--extract-only
and --dontextract options were created for exacly this kind of scenario.

Original comment by chriskar...@googlemail.com on 25 Nov 2008 at 6:55

GoogleCodeExporter commented 9 years ago

Original comment by chriskar...@googlemail.com on 25 Nov 2008 at 9:57