On 27/12/2012 17:56, Marcos de Carvalho Monteiro wrote:

I'm using ITextSharp version 5.3.5 to PDF signing and annotating. Recently I received just one PDF file which is being corrupted by my annotation procedure specifically from the second page.

I found the problem, but I don't know how to fix it yet.
This is what happens.

The signature is invisible, but defined for the first page. When you add an annotation to the first page, that annotation is added to the same array that contains the (invisible) widget annotation for the signature. All goes well.

But when you add an annotation to a page without an annotation array, a new annotation array is created. However: for some reason, the Contents array gets corrupted. The first element is changed to a reference to a null object. This is a very strange phenomenon. I've never seen it before.

I need more time to find out why this happens.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to