Open GoogleCodeExporter opened 9 years ago
I think I have a partial fix for this.
In the get_html_list function if we filter out the pages list and only grab
html files this works.
Seems it was trying to work on all entities including things like "/" and files
that aren't html like ".zip".
If we filter it out with something like:
lister.pages = filter (lambda a: '.html' in a, lister.pages)
We then get a nicely formed PDF.
The only problem now is that images don't seem to make the cut, at least in the
chm I tested... but I didn't have a way to test to see if the original images
worked anyway. I have attached my patched chm2pdf.py file for now.
Original comment by Matthew....@gmail.com
on 22 Dec 2010 at 4:51
Attachments:
Oh and this isn't just with the book switch, but any conversion it seems.
Still didn't take a look at making sure the images stay in there, but probably
best to split up the lists and filter for each.
Original comment by Matthew....@gmail.com
on 24 Dec 2010 at 3:17
Original issue reported on code.google.com by
tomaz.markelj@gmail.com
on 21 Oct 2009 at 10:06