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