Images not rendered in PDF due to upper/lower case spelling error

Bug #890874 reported by Reto Knaak
This bug affects 1 person
Affects Status Importance Assigned to Milestone
chm2pdf (Ubuntu)

Bug Description

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?

Tags: patch
Steve Stalcup (vorian)
Changed in chm2pdf (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Reto Knaak (reto-knaak) wrote :

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)

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Images case insensitive patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers