<div dir="ltr"><br>Albert, thank you so much!<div><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
El Dijous, 7 de mar? de 2013, a les 14:50:18, Haidong Tang va escriure:<br>
> Albert,<br>
><br>
> Thanks a lot for clarifying! So is there any function that I can know the<br>
> positions of intrinsic images in a pdf?<br>
<br>
As I already said in the previous email we don't have any API for that in<br>
Okular.<br>
<br>
> I just want to find a way to take out those images. Do you have any<br>
suggestions?<br>
<br>
Implement the feature in poppler-qt and then implement the feature in Okular<br>
<br>
> Also, what is an OKULAR_OBSERVER_ID? I don't quite understand the mechanism<br>
> behind it. I used 6 in my case and it works fine but when I'm using 77 it<br>
> doesn't work at all. What number am I supposed to use?<br>
<br>
Use okular master and you won't need to care about that since i recently<br>
killed the observer id concept.<br>
<br>
Cheers,<br>
Albert<br>
<br>
><br>
> > Message: 4<br>
> > Date: Thu, 07 Mar 2013 11:47:19 +0100<br>
> > From: Albert Astals Cid <<a href="mailto:aacid@kde.org">aacid@kde.org</a>><br>
> > To: Okular development <<a href="mailto:okular-devel@kde.org">okular-devel@kde.org</a>><br>
> > Subject: Re: [Okular-devel] how to get images from pdf files?<br>
> > Message-ID: <9667157.6NtSr88zM4@xps><br>
> > Content-Type: text/plain; charset="iso-8859-1"<br>
> ><br>
> > El Dijous, 7 de mar? de 2013, a les 00:12:10, Haidong Tang va escriure:<br>
> > > Hi,<br>
> ><br>
> > Hi<br>
> ><br>
> > > I'm testing some functionalities on Okular and currently I'm working on<br>
> > > getting images from a pdf files. I tried to use requestPixmaps( const<br>
> > > QLinkedList<PixmapRequest*> &requests ) in the class Document to request<br>
> > > image asynchronously and then use _o_nearestPixmap to get the images<br>
> > > when<br>
> > > they are ready. However, the images I got by using this method are not<br>
> > > really what I want. This method may give me an image of the whole page,<br>
> ><br>
> > but<br>
> ><br>
> > > actually I'm only interested in those intrinsic images embedded in a<br>
> ><br>
> > page,<br>
> ><br>
> > > not a whole page converted into a image. Am I using the wrong function<br>
> ><br>
> > for<br>
> ><br>
> > > this task? Are there other more proper functions for my task? Thanks!<br>
> ><br>
> > There's no method that does what you want in the Okular API. You're<br>
> > welcome to<br>
> > draft the API for it if you need it and think the backends can implement<br>
> > it.<br>
> ><br>
> > Cheers,<br>
> ><br>
> > Albert<br>
<br><br>
</blockquote></div><br></div></div></div></div>