<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<BR> <BR>
> From: carlosgc@gnome.org<BR>> To: poppler@lists.freedesktop.org<BR>> Date: Tue, 12 May 2009 12:06:57 +0200<BR>> Subject: Re: [poppler] (no subject)<BR>> <BR>> El mar, 12-05-2009 a las 10:53 +0200, Pino Toscano escribió:<BR>> > Hi,<BR>> > <BR>> > > I haven't found any code example on the web about the annotations classes.<BR>> > > The okular source code would be a great example unfortunatly I can't<BR>> > > download it easily because I'm working on Windows.<BR>> > <BR>> > http://websvn.kde.org/trunk/KDE/kdegraphics/okular<BR>> > go in the generators/poppler dubdirectory for the poppler backend.<BR>> > <BR>> > > The thing is I create the annotations well (I think) but after that I don't<BR>> > > success to store it in a xml file because the store fonction need a<BR>> > > QDocument and a QNode and it's not very clear in my head.<BR>> > <BR>> > You most don't need to look at the functions to retrieve/store annotations <BR>> > from/to XML.<BR>> > What is your exact use case, ie what are you trying to do?<BR>> > <BR>> > > Moreover, when I have created the annotation I don't know how to do to view<BR>> > > it.<BR>> > <BR>> > Current poppler support for annotations is read-only, ie you can only get the <BR>> > annotations of a document's page, but you cannot change them, nor add new <BR>> > ones.<BR>> > The current *Annotation classes are not wrapper to internal objects, but <BR>> > just "data objects". Changing the values on instance of those objects will do <BR>> > nothing on the document they belong to.<BR>> <BR>> now it's possible to change the annot contents with<BR>> Annot::setContents(). <BR>
<BR>
So it's possible to change the existing annots contents but is it possible to create new ones ?<BR>
<BR>> <BR>> > _______________________________________________<BR>> > poppler mailing list<BR>> > poppler@lists.freedesktop.org<BR>> > http://lists.freedesktop.org/mailman/listinfo/poppler<BR>> -- <BR>> Carlos Garcia Campos<BR>> elkalmail@yahoo.es<BR>> carlosgc@gnome.org<BR>> http://carlosgc.linups.org<BR>> PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462<BR><BR><br /><hr />Votre correspondant a choisi Hotmail et profite d'un stockage quasiment illimité. <a href='http://www.windowslive.fr/hotmail/default.asp' target='_new'> Créez un compte Hotmail gratuitement !</a></body>
</html>