Thanks, I missed the examples...
The line "appearance.setVisibleSignature("foobarsig");" saves me...
Works great.
2008/7/1 Bruno Lowagie <[EMAIL PROTECTED]>:
> Christophe Uberri wrote:
> > Hi everybody,
> >
> > I'm new to iText and I want to insert in a PDF two signature fields. I
> > did the following :
> >
> > //SIGNATURE ACROFIELDS
> > PdfAcroForm acroFormSig = writer.getAcroForm();
> > acroFormSig.addSignature("First Signature", 90, 100, 290, 200); //First
> > Signature
> > acroFormSig.addSignature("Second Signature", 310, 100, 510, 200);
> > //Second Signature
>
> You have created a PDF with signature fields like this:
> http://1t3xt.info/examples/browse/?page=example&id=251
>
> > Ok, that's fine, the fields appear correctly in my pdf.
> > Now I want these fields to be signed (with 2 certificates).
>
> But somehow you've missed the example that follows right
> after the one mentioned above:
> http://1t3xt.info/examples/browse/?page=example&id=252
>
> And if you need two signatures, you'll need to read even
> further and have a look at:
> http://1t3xt.info/examples/browse/?page=example&id=253
> Especially where it says:
> PdfStamper stamper = PdfStamper.createSignature(reader,
> os, '\0', null, true);
>
> Otherwise the second signature will invalidate the first one.
> br,
> Bruno
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> 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
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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