Bug 183542 - Okular opens only in part CHM files
Summary: Okular opens only in part CHM files
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: CHM backend (show other bugs)
Version: 0.8
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 185680 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-07 12:15 UTC by marco
Modified: 2009-03-01 11:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***