<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: pino@kde.org<BR>> To: poppler@lists.freedesktop.org<BR>> Date: Tue, 12 May 2009 10:53:37 +0200<BR>> Subject: Re: [poppler] (no subject)<BR>> <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>
Thanks a lot for those examples.<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>
I'm currently in work placement and I have to do a standalone marking tool. So I need to allow the user to create inking, text and highlight annotation at least.<BR>
A little bit as okular project do (I didn't test it I'm just bqsing on the screenshots)<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>
Do you mean that is impossible to create new annotation with poppler ?<BR>
Maybe the example you give me will help me, I'll take a look during the day.<BR>
<BR>
Romain.<BR>> <BR>> -- <BR>> Pino Toscano<BR><BR><br /><hr />Souhaitez vous « ętre au bureau sans y ętre » ? <a href='http://www.microsoft.com/france/windows/bts/default.mspx' target='_new'>Oui je le veux !</a></body>
</html>