Hi, Thank you for your patch. You are of course right. I commited it to SVN.
regards,
Dom
Am Sonntag, 19. Oktober 2008 schrieb Jonathan Verner:
> 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 )
> {
--
**********************************************************************
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
**********************************************************************
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
