Hi Jonathan,

Thanks for your patch. I commited the GetQuadPoints method you added. Instead 
of adding the quadpoints argument to the CreateAnnotation method, I added a 
method SetQuadPoints. This should work for you as well and is more consistent 
with all the currently available annotations.

The annotation API is not very good and needs some refactoring. So the set 
method is no good solution either, but I prefer it more to adding all 
possible arguments to the CreateAnnoations method. This might be a matter of 
taste. Well, maybe I'l lfind sometimes a minute to think of a better 
approach. Patches are welcome of course :)

best regards
        Dom

Am Donnerstag, 13. November 2008 schrieb Jonathan Verner:
> Hello,
>
> I am working on a little program to allow me to annotate PDF files.
> I am using PoDoFo to parse the pdf's and to save them. I found out
> that PoDoFo, as of yet, does not fully support hilight annotations.
> In particular it doesn't allow me to set/get the QuadPoints array in
> the annotation's dictionary which is required for hilight
> annotations (Pdf spec. v1.7, section 8.4.5 Annotation Types ---
> Text Markup Annotations, p. 634 ).
>
> Below is my first attempt at implementing hilight annotation support
> in PoDoFo (basically add a PdfArray parameter to the constructor of
> an annotation and to PdfPage::CreateAnnotation which will hold the
> QuadPoints array. Then, in the constructor, I add this array to the
> annotation's dictionary. Furthermore I add a method
> PdfAnnotation::GetQuadPoints which retrieves the QuadPoints array).
>
> I am not sure if this is the right approach. Reading through the
> spec, it seems, that to fully support all annotation types, a
> better thought out approach would be necessary --- i.e. to not add
> new annotation type support ad hoc. That would be quite a lot of
> work and I am not able to commit myself to this so I only hacked up
> the hilight annotation support which I need.
>
> Have a nice day,
>
> Jonathan Verner



-- 
**********************************************************************
Dominik Seichter - [EMAIL PROTECTED]
KRename  - http://www.krename.net  - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game,  for KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to