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