[Bug 1074699] [NEW] Chm2pdf fails to process chm's without table of contents
Public bug reported: This was reported on https://groups.google.com/forum/#!topic/chm2pdf/SeOGMcMFsBw/discussion An example of file without toc is in the attchment chmtest_noToc.chm When trying to convert it by chm2pdf: chm2pdf --book chmtest_noToc.chm Traceback (most recent call last): File "/usr/local/bin/chm2pdf", line 1156, in main(sys.argv) File "/usr/local/bin/chm2pdf", line 1150, in main convert_to_pdf(cfile, filename, outputfilename, options) File "/usr/local/bin/chm2pdf", line 343, in convert_to_pdf html_list=get_html_list(cfile) File "/usr/local/bin/chm2pdf", line 109, in get_html_list lister.feed(topicstree) File "/usr/lib/python2.6/sgmllib.py", line 103, in feed self.rawdata = self.rawdata + data TypeError: cannot concatenate 'str' and 'NoneType' objects A fix has been posted here: lp:~grishkin/chm2pdf/chm2pdf_branch ** Affects: chm2pdf (Ubuntu) Importance: Undecided Status: New ** Attachment added: "chmtest_noToc.chm" https://bugs.launchpad.net/bugs/1074699/+attachment/3422699/+files/chmtest_noToc.chm ** Branch linked: lp:~grishkin/chm2pdf/chm2pdf_branch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1074699 Title: Chm2pdf fails to process chm's without table of contents To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/1074699/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 630520] Re: chm2pdf crashed if BeautifulSoup is used but not installed
** Summary changed: - chm2pdf crashed with ImportError in correct_file() + chm2pdf crashed if BeautifulSoup is used but not installed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/630520 Title: chm2pdf crashed if BeautifulSoup is used but not installed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/630520/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 500262] Re: Errors if file name contains escaped special characters (space, parenthesis etc)
I tried to solve the problem, mostly using re.escape() instead using re.sub(' ', '\ ', See the diff file for details ** Patch added: "patch which will convert the previous chm file" https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/500262/+attachment/2623899/+files/chm2pdf_specialchars.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/500262 Title: Errors if file name contains escaped special characters (space, parenthesis etc) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/500262/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 500262] Re: Errors if file name contains escaped special characters (space, parenthesis etc)
I made this CHM file to test - contains spaces, ( and ) in the name of the file - contains spaces, ( and ) also in the paths and names of htm pages ** Attachment added: "test CHM file" https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/500262/+attachment/2623898/+files/Name%20%28with%20space%29.chm -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/500262 Title: Errors if file name contains escaped special characters (space, parenthesis etc) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/500262/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 500262] Re: Errors if file name contains escaped special characters (space, parenthesis etc)
** Summary changed: - Errors when run + Errors if file name contains escaped special characters (space, parenthesis etc) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/500262 Title: Errors if file name contains escaped special characters (space, parenthesis etc) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/500262/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 500262] Re: Errors when run
I searched and found the file "Python In A Nutshell, 2nd Edition (2006).chm" and tryied following: - renaming the file so that it doesn't contains any special character like spaces or parenthesis, it converts well - escaping the spaces in name of the file is not enough as also () need to be escaped (bash: syntax error near unexpected token '(' ) - escaping also ( and ) will give me exacly the situation reported by narnie. - installing the patch of bug 894193 won't correct this In the code, we have situatiuons like those: # the python interpreter handles files with spaces just fine, so we have to unescape # our spaces when passing files as arguments to library functions if os.path.exists(re.sub(' ', ' ', page_filename)) and (options['titlefile'] == '' or not options['titlefile'] in url): And those will only catch escaped spaces, not other escaped special characters like ( or ) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/500262 Title: Errors when run To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/500262/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 500262] Re: Errors when run
** Changed in: chm2pdf (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/500262 Title: Errors when run To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/500262/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 894193] Re: Trouble if chm contains path with spaces
In my patch there is still one place I don't like too much: page = re.sub('%20',' ',page) If in the text there is a %20, this too will be replaced with a normal space - and this is not correct. So the regex should be changed to repalce %20 only if they occour inside a src=".." or href="...", but I have no solution for this right now. Any suggestions? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/894193 Title: Trouble if chm contains path with spaces To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/894193/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896692] Re: Last page of CHM incompletly rendered or missing
** Changed in: chm2pdf (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896692 Title: Last page of CHM incompletly rendered or missing To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/896692/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 894193] Re: Trouble if chm contains path with spaces
** Changed in: chm2pdf (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/894193 Title: Trouble if chm contains path with spaces To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/894193/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 500262] Re: Errors when run
Hi Narnie! Your problem could be related to this other bug, for which I found a patch (working for my case). Could you please check if this solves also your case? https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/894193 If not, could you provide the CHM file causing the problem? Kind regards! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/500262 Title: Errors when run To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/500262/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896692] Re: Last page of CHM incompletly rendered or missing
...and here the patch for it! ** Patch added: "Flush file before closing to avoi trouble on last page of document" https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/896692/+attachment/2609642/+files/chm2pdf_flush.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896692 Title: Last page of CHM incompletly rendered or missing To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/896692/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 896692] [NEW] Last page of CHM incompletly rendered or missing
Public bug reported: I have some trouble with the last pages of my documents. In one case, i get some ERR011: Unable to parse HTML element on line 49! from htmldoc on the last pages. The strange thing is, that if I re-run the very same htmldoc command dipalyed with the --verose --verbosity high level (obviosly not deleting the temporary files), the pdf will be complete and no error ERR011 is rised. It's like the last file written by the conversion before invoking HTMLDOC is still open or not completely written! In an other case, the last page is simply completly missing, without any error message. But the code look just fine to me: pf=open(filename,'w') pf.write(page) pf.close What could be wrong?? Writing a dummy file afterwards before invoking HTMLDOC resolves the problem, but this seems quite a ugly hack to me (I am not a programmer). Then I found the command pf.flush() This also solves the problem. But why is this necessary?? ** Affects: chm2pdf (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/896692 Title: Last page of CHM incompletly rendered or missing To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/896692/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 894193] Re: Trouble if chm contains path with spaces
I think now I have a fully working patch: This line page=re.sub(r'(?i)"'+iurl,'"'+img_filename,page) could put in the html page a mix of escaped and unescaped spaces in the paths... (e.g. /tmp/tmp33GfZf/Name\ with\ space/doc space/image path/velocity space.gif) Now this line will be page=re.sub(r'(?i)"'+iurl,'"'+re.sub(' ', ' ', img_filename),page) to put only unescaped paths in the html page. ** Patch added: "Fixing path with spaces patch" https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/894193/+attachment/2609595/+files/chm2pdf_space.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/894193 Title: Trouble if chm contains path with spaces To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/894193/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 894193] Re: Trouble if chm contains path with spaces
The posted patch #2 fixes the error only if filename contains no spaces... With filenames containing escaped spaces, it doesn't work... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/894193 Title: Trouble if chm contains path with spaces To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/894193/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 630520] Re: chm2pdf crashed with ImportError in correct_file()
** Changed in: chm2pdf (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/630520 Title: chm2pdf crashed with ImportError in correct_file() To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/630520/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 890877] Re: table background color removed
** Summary changed: - table background color removed Options + table background color removed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/890877 Title: table background color removed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890877/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 894193] Re: Trouble if chm contains path with spaces
Applying this patch, the CHM in the previous comment is converted without missing links and images. Only the last page is missing, but this is also the case without this patch and is thus a separate bug. (of html2doc?) ** Patch added: "Fixing path with spaces patch" https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/894193/+attachment/2606533/+files/chm2pdf_space.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/894193 Title: Trouble if chm contains path with spaces To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/894193/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 894193] [NEW] Trouble if chm contains path with spaces
Public bug reported: Some links are broken, images not included in PDF etc if the CHM contains path and names with spaces. In the attachment, I have made a nasty CHM file full of spaces to show the errors. ** Affects: chm2pdf (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/894193 Title: Trouble if chm contains path with spaces To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/894193/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 894193] Re: Trouble if chm contains path with spaces
** Attachment added: "Demo_CMH.zip" https://bugs.launchpad.net/bugs/894193/+attachment/2606532/+files/Demo_CMH.zip -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/894193 Title: Trouble if chm contains path with spaces To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/894193/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 890870] Re: multiple page problem
There was a small error: forget to delete a line. Now this patch works! ** Patch added: "Multiple page problem patch" https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890870/+attachment/2606469/+files/chm2pdf_multiple_page_problem.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/890870 Title: multiple page problem To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890870/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 890870] Re: multiple page problem
** Patch removed: "Multiple page problem patch" https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890870/+attachment/2602907/+files/chm2pdf_multiple_page_problem.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/890870 Title: multiple page problem To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890870/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 630520] Re: chm2pdf crashed with ImportError in correct_file()
Beautifulsoup is an optional package, if you don'use it, no need to install it. If you install chm2pdf you don't get beautifulsoup automatically. If the --beautifulsoup option is passed, CHM2PDF executes from BeautifulSoup import BeautifulSoup, Tag and this will rise an exception. I added the code to intercept this exception generating some help +try: + from BeautifulSoup import BeautifulSoup +except Exception, e: + print + print '### An error occured importing soup ', e + print '### Check if beautifulsoup is installed or remove --beautifulsoup from the command line' + sys.exit() ** Patch added: "Check if beautifulsoup is installed before importing it!" https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/630520/+attachment/2606436/+files/chm2pdf_check_soup.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/630520 Title: chm2pdf crashed with ImportError in correct_file() To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/630520/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 630520] Re: chm2pdf crashed with ImportError in correct_file()
You used the --beautifulsoup option but you didn't install beautifulsoup which is optional maybe? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/630520 Title: chm2pdf crashed with ImportError in correct_file() To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/630520/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 890878] Re: no effort is done in chm2pdf to delete javascript
This is the first time I try to generate a patch... hope this is correct! - added a regex to delete javascript: (?i)]*>(.*?) ** Patch added: "delete javascript patch" https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890878/+attachment/2603003/+files/chm2pdf_no_javascript.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/890878 Title: no effort is done in chm2pdf to delete javascript To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890878/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 890874] Re: Images not rendered in PDF due to upper/lower case spelling error
This is the first time I try to generate a patch... hope this is correct! - added (?i) modifier to make a case insensitive match for not breaking working links to images on windows in CHM files - added " to the match criteria to avoid wrong match (eg this.gif matched also do_this.gif before) ** Patch added: "Images case insensitive patch" https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890874/+attachment/2602989/+files/chm2pdf_images_case_insensitive.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/890874 Title: Images not rendered in PDF due to upper/lower case spelling error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890874/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 890882] Re: another broken link issue
The same patch of https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890873 fixes also this one (same regular expression) ** Patch added: "chm2pdf_links_case_insensitive.diff" https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890882/+attachment/2602992/+files/chm2pdf_links_case_insensitive.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/890882 Title: another broken link issue To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890882/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 890873] Re: links not working in the PDF with upper/lower case spelling error
This is the first time I try to generate a patch... hope this is correct! - added (?i) modifier to make a case insensitive match for not breaking working links on windows in CHM files - added " to the match criteria to avoid wrong match (eg this.htm matched also do_this.htm before) ** Patch added: "links case insensitive patch" https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890873/+attachment/2602957/+files/chm2pdf_links_case_insensitive.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/890873 Title: links not working in the PDF with upper/lower case spelling error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890873/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 890877] Re: table background color removed Options
This is the first time I try to generate a patch... hope this is correct! Changed one regular expression: - added (?i) to make regex case insensitive - search for #links stops at # and " - * changed to + to ignore internal links "#..." ** Patch added: "removed background color patch" https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890877/+attachment/2602908/+files/chm2pdf_color_removed.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/890877 Title: table background color removed Options To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890877/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 890870] Re: multiple page problem
This is the first time I try to generate a patch... hope this is correct! ** Patch added: "Multiple page problem patch" https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890870/+attachment/2602907/+files/chm2pdf_multiple_page_problem.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/890870 Title: multiple page problem To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890870/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 630520] Re: chm2pdf crashed with ImportError in correct_file()
Do you get the same if the filename contains no spaces? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/630520 Title: chm2pdf crashed with ImportError in correct_file() To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/630520/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 500262] Re: Errors when run
Am I wrong or is your filename containing spaces? I think this could be the cause of your problems. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/500262 Title: Errors when run To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/500262/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 890882] [NEW] another broken link issue
Public bug reported: In my CHM I have this link Overview of HW which becomes Overview of HW because match overview\.htm and replace it with temp0003_html but should be match HW_overview\.htm and replace it with temp0081_html Again a regex problem! In the #Substitutions in 1st pass i modified the regex like this to fix this by adding ": page = re.sub('(?i)"'+match_string, '"'+replace_string, page) ** Affects: chm2pdf (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/890882 Title: another broken link issue To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890882/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 890877] [NEW] table background color removed Options
Public bug reported: The first bgcolor="#001122" afre a link will become bgcolor="", due to this regex which is too greedy: # Replace links of the form "somefile.html#894" with "somefile0206.html" # The following will match anchors like 'X1 and so nothing of the link would be left: in my optinion, in this case I prefer to leave the link intact, as it points inside the same file! page = re.sub('(?i)https://bugs.launchpad.net/bugs/890877 Title: table background color removed Options To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890877/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 890873] [NEW] links not working in the PDF with upper/lower case spelling error
Public bug reported: In my application some links are not working in the PDF as I have some upper/lower case errors in links. As CHM is "windows stuff" this doesen't matter there, but "here" it does! So how about making the 1. pass matching case insensitive adding the (?i) modifier in the regular expression? ** Affects: chm2pdf (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/890873 Title: links not working in the PDF with upper/lower case spelling error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890873/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 890874] [NEW] Images not rendered in PDF due to upper/lower case spelling error
Public bug reported: I have a CHM file with images, and some are not generated in the PDF. The reason is (again) that in windows paths and names are not case sensitive, but in linux they are. So basically the problem is there: a mismatch in upper/lower case somewhere in the CHM is enough. The CHM will display correctly in windows but you can't convert completely with chm2pdf. The curious part is that in my case, the images not displayed where written correctly but they where in the same subdirectory with other images from other pages: and on one of the other pages the subdirectory was written lower case. So the page where images are missing in PDF is not necessarly the page where the mispelled upper/lowercase is, it can be on any other page. Probably what counts is how the path is spelled the first time it is encountered generating the CHM source file Anyone has some ideas how this could be solved automagically in chm2pdf? ** Affects: chm2pdf (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/890874 Title: Images not rendered in PDF due to upper/lower case spelling error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890874/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 890870] [NEW] multiple page problem
Public bug reported: As I am not familiar with linux, but needed to use chm2pdf soI installed Ubuntu 11.10 on my PC and I got the CHM2PDF 0.9.1.1ubuntu5 from the software center - this worked flawless. Converting my chm file, some pages where there more than once in the output (one time for every link to that page ?) I see in the script that something is done to Avoid duplicates in the list of image URLs (in class ImageCatcher), but nothing similar is done for class PageLister... I modified this in Pagelister class and Multiple pages seems now fixed: # Avoid duplicates in the list of URLs. if not self.pages.count('/'+value): self.pages.append('/'+value) ** Affects: chm2pdf (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/890870 Title: multiple page problem To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/890870/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs