Hello, 

I've been trying to use PoDoFo to delete PDF annotations from 
a file, but the method PdfPage::DeleteAnnotation, always
threw an ePdfError_NoObject error at me. When looking at the
source code of the method, it seems there is a typo in there
(see the diff below), which makes the method always fail. When
corrected, it works fine for me. 

Jonathan Verner

Diff of PdfPage.cpp

Index: PdfPage.cpp
===================================================================
--- PdfPage.cpp (revision 947)
+++ PdfPage.cpp (working copy)
@@ -314,7 +314,7 @@
     }

     it = pObj->GetArray().begin();
-    while( it != pObj->GetArray().begin() )
+    while( it != pObj->GetArray().end() )
     {
         if( (*it).GetReference() == ref )
         {

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