El Dissabte, 11 de maig de 2013, a les 07:12:29, Jaydeep Solanki va escriure: > On Wed, May 8, 2013 at 3:35 AM, Albert Astals Cid <aa...@kde.org> wrote: > > El Diumenge, 5 de maig de 2013, a les 01:46:34, Jaydeep Solanki va > > > > escriure: > > > Hello, > > > I have created a small app that opens epub files and renders them using > > > webkit. > > > It has a lot of bugs, but I just want to verify that the approach that > > > > I'm > > > > > using is appropriate or not. > > > > Well, you are not implementing the okular generator API at the moment, > > that's > > something you should always keep in mind, i.e. you can't use a webview to > > display stuff to the user. > > > > I have made some changes and now it generates QPixmaps, which I'm showing > > in a window. > > You can compare it with the Okular output, here's a > link<http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/ > digital-editions/assets/welcome.epub>to an epub.The results are good! > The implementation still lacks a lot of features, which I'm working on.
It segfaults on me. Cheers, Albert > > Project : https://github.com/jaydeep17/Okular_Epub.git > > Cheers, > Jaydeep > > Cheers, > > > Albert > > > > > To load the resources in webview, I use a subclass of > > > QNetworkAccessManager, that gets the resources using libepub and passes > > > > it > > > > > as a networkreply. To make this work, I just had to prepend the src > > > attribute of images (<img>) with "http://" in the html, so that it asks > > > > the > > > > > assigned networkmanager to download it. > > > > > > here's the github link <https://github.com/jaydeep17/Okular_Epub>. > > > > > > Cheers, > > > Jaydeep > > > > _______________________________________________ > > Okular-devel mailing list > > Okular-devel@kde.org > > https://mail.kde.org/mailman/listinfo/okular-devel _______________________________________________ Okular-devel mailing list Okular-devel@kde.org https://mail.kde.org/mailman/listinfo/okular-devel