Sorry, for being a little bit vague ... yes, I was talking about digitally
signed documents by using cryptographic stuff.
;-)

Your hint brings me back to the beginning: I want to control the
position/size of the signature with OpenOffice by placing a special
placeholder at the desired place and I couldn't find a way in OpenOffice for
adding a signature field.

I already found out, that the command "form.removeField(key, pagenr);"
should be able to remove a field (in my case the button) but the problem
with invalid signatures when clicked once still persists.

In the meantime I realized that the following lines solve the problem:

stamper.setFormFlattening(true);
stamper.partialFormFlattening(key);

So I use still a button as placeholder and during the signing process this
button is flattened. This results in a signature that is valid an remains
valid when clicked.
:-)

best regards & thanx a lot for your help

Tom



Bruno Lowagie (iText) wrote:
> 
> Baer wrote:
>> Hi Bruno,
>> 
>> thanx for the answer; a button is an excellent placeholder and I get the
>> position with the code you provided.
>> 
>> Nevertheless, there is one drawback when I place the signature over the
>> button:
>> 
>> When I open such a pdf document with Acrobat Reader (tried with version
>> 7.0.9), it displays a valid signature. 
>> 
>> When I click on this valid signature it flickers shortly and displays an
>> INVALID signature because the document was modified after signing.
>> 
>> Since everything worked fine, before I added this modification, I'm sure
>> that the reason is the button.
> 
> I didn't know you were talking about a digital signature.
> I had just done a project where I had to put a gif file
> with a signature (an image not a digital signature) on a PDF.
> 
> If we're talking about a digital signature, please have a
> look at these examples:
> http://1t3xt.info/examples/browse/?page=example&id=251
> http://1t3xt.info/examples/browse/?page=example&id=252
> The first example adds an unsigned signature field;
> the second one replaces this empty field by a digital
> signature. You don't have to worry about coordinates
> if you do it this way.
> 
> br,
> Bruno
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Do you like iText?
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Or leave a tip: https://tipit.to/itexttipjar
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Set-Signature-at-a-particular-position-tp17304458p17466599.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to