[Okular-devel] demo epub - using webkit

Jaydeep Solanki jaydp17 at gmail.com
Sat May 11 01:42:29 UTC 2013


On Wed, May 8, 2013 at 3:35 AM, Albert Astals Cid <aacid at 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.

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 at kde.org
> https://mail.kde.org/mailman/listinfo/okular-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20130511/6297573a/attachment.html>


More information about the Okular-devel mailing list