davideuler / chm2pdf

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

PDF file contains TOC only, main text is missing #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
chm2pdf 0.9

Bug submission following discussion in Google group chm2pdf.

When converting the NSIS User's Manual NSIS.chm, the resulting
PDF file contains only a table of content. The main text is missing.

CHM file is attached to this report and can also be downloaded
from http://nsis.sourceforge.net/

In the Google group discussion, Chris Karakas mentions that he
reproduces the problem with his development 0.9.1 version and asked
for a bug submission. Here it is...

> I tried both 0.9 and my "development" 0.9.1 version. The problem exists
> in both. It comes from the fact that the CHM file "says" that it contains
> files with names like "SectionF.21.html#F.21.1.2", but actually it
> contains files like "SectionF.21.html". That is, we have to take away the
> "anchor information" (the "#F.21.1.2" part), before dealing with the
> files in chm2pdf.
>
> This seems to be a bug, so please be so kind and open one. :-)
> 
> Chris 

Original issue reported on code.google.com by thierry....@free.fr on 13 Mar 2008 at 4:17

Attachments:

GoogleCodeExporter commented 9 years ago
This should be fixed by now, as chm2pdf strips away anchors in its current 0.9.1
version. We may change this behaviour in the future (maybe add another option 
to deal
with it), as it seems that stripping away anchors is irritating those people 
who try
to convert API documentation (which heavily depends on anchors), see 

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502702

Original comment by chriskar...@googlemail.com on 25 Nov 2008 at 10:19

GoogleCodeExporter commented 9 years ago
I now use chm2pdf 0.9.1 (fedora package chm2pdf-0.9.1-7.fc12.noarch) and I 
still get
the same behaviour: a PDF file of 20 pages containing the first HTML page only 
(the
table of contents).

$ chm2pdf --book NSIS.chm 
PAGES: 20
BYTES: 553387
Written file NSIS.pdf
Done.
$ 

I have attached NSIS.chm again. Could you please tell me how many pages you get 
in
the resulting PDF ?

If you view the CHM file using a CHM viewer, you can see chapters 1 to 5 and
appendices A to I. When using --extract-only, I get 167 files and directories in
/tmp/chm2pdf/orig/NSIS. But only the first HTML file in the PDF...

Any idea ?

Thanks in advance

Original comment by thierry....@free.fr on 11 Feb 2010 at 1:29

Attachments: