Bug 183542

Summary: Okular opens only in part CHM files
Product: [Applications] okular Reporter: marco <marcusbu>
Component: CHM backendAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal CC: bluedzins
Priority: NOR    
Version: 0.8   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description marco 2009-02-07 12:15:04 UTC
Version:           0.8 (using KDE 4.2.0)
OS:                Linux
Installed from:    Debian testing/unstable Packages

As the title says, Okular opens a CHM file of 500+ pages showing only 17 pages. 
Other pages are not considered (pages go from 1 to 17).
I've tried to open another CHM file and only 101 pages (of 700+) have been opened.
 
I'm using Debian Lenny, KDE 4.2, Okular 0.8.

Thank you.
Comment 1 marco 2009-02-07 12:16:59 UTC
Just one thing: I've tried to open them with KchmViewer and other CHM viewers, and they work well.

Thank you!
Comment 2 Pino Toscano 2009-02-07 12:17:37 UTC
Please provide any sample document showing the issue.
Comment 3 marco 2009-02-07 12:46:51 UTC
@Pino Toscano: 
I'm sorry, but I can't upload these ebooks, since they are copyright protected.

However, I've tried to convert these files to PDF through chm2pdf. While the first presents some errors, so it can't be converted to pdf, the other has been converted well to pdf.

Comment 4 Pino Toscano 2009-03-01 11:49:24 UTC
SVN commit 933550 by pino:

Get the file list from the document, instead of spoofing them from the TOC.
FIlter out files not ending with ".html", to avoid loading non-HTML contents as pages.
BUG: 183542


 M  +4 -3      generator_chm.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=933550
Comment 5 Pino Toscano 2009-03-01 11:50:33 UTC
SVN commit 933552 by pino:

Backport SVN commit 933550 by pino:
Get the file list from the document, instead of spoofing them from the TOC.
FIlter out files not ending with ".html", to avoid loading non-HTML contents as pages.
Will be in KDE 4.2.2.
CCBUG: 183542


 M  +4 -3      generator_chm.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=933552
Comment 6 Pino Toscano 2009-03-01 11:51:51 UTC
*** Bug 185680 has been marked as a duplicate of this bug. ***