It may not be needed to loop through all the fields. This situation can only 
occur if the sigflags are set and there's an orphan signature field with a 
rectangle [0 0 0 0].

Paulo

________________________________________
From: Michael Klink [EMAIL PROTECTED]
Sent: Friday, November 07, 2008 3:08 PM
To: [email protected]
Subject: Re: [iText-questions] Signature not found : Bug or feature ?

Hello,

I happened to come across signatures just like the one Andreas Kühne posted in 
September. As I need to be able to handle these signatures fairly soon (at 
least it looks like a greater hassle to persuade my users not to use the 
secunet application that creates these signatures), I created a small helper 
method that adds these signature fields not referenced in the annotation arrays 
of the document pages; this helper has to be applied to an AcroFields instance 
right after getting it from the PdfReader. Essentially it replaces the data 
collected by AcroFields.fill() with an extended set of fields in a way inspired 
by the that very method.

It seems to work alright in my first tests, even though there might be some 
object releasing still to do; and obviously the duplicate code inside that 
method is not artful coding.

Primarily I do wonder, though, whether iText might have any trouble when later 
confronted with these additional entries among its fields, especially 
considering the PdfStamper and PdfCopy* classes when writing derived PDF 
documents.

Regards,   Michael.


Paulo Soares <psoares <at> glintt.com> writes:

> I'm not sure if this is a bug from iText but this things appear now and then 
> and,
> like it or not, if it works in Acrobat it must be right. I'll "fix" it.
>
> Paulo
>
> > -----Original Message-----
> > From: itext-questions-bounces <at> lists.sourceforge.net
> > [mailto:itext-questions-bounces <at> lists.sourceforge.net] On
> > Behalf Of Andreas Kuehne
> > Sent: Tuesday, September 09, 2008 4:08 PM
> > To: Post all your questions about iText here
> > Subject: [iText-questions] Signature not found : Bug or feature ?
> >
> > Hi,
> >
> > I'm not sure whether I'm going to submit a bug or request a
> > new feature :
> >
> > The AcroFields class has method returning all signatures (
> > getSignatureNames() ).
> >
> > Now I came across a pdf with a signature that doesn't get
> > returned by getSignatureNames(). On the other hand the
> > Acrobat Reader shows the signature without any problems.
> >
> > Analyzing the code shows that AcroFields are expected to be
> > related to a page. But the signature doesn't !
> > So my question is :
> >
> > Is it a bug to expect every signature to be assigned to a
> > page ( what isn't neccessarily so ) ?
> > Or do AcroFields are expected to be page-related 'by nature',
> > so my signature is just no AcroField and I must look for
> > another way to retrieve the signature ?
> >
> > The problematic signed PDF is attached.
> >
> > Opinions welcome
> >
> > Andreas

Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.

-------------------------------------------------------------------------
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=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to