Hi Randolph,
you need to create a AcroForm object. The signature field has to be
one of the form fields then. This is not the case in your Test-PDF.
You can use the PdfAcroForm for this.
PdfAcroForm acroForm = aWriter.getAcroForm();
and
PdfFormField.createSignature(PdfWriter writer);
With the standard implementation of iText you can generate
a hidden signature (x,y,dx,dy all 0).
But to create a visible signature you'll have to do a lot more.
I didn't manage to do it (luckily it wasn't a requirement in my case).
There is documentation at the Adobe Website. Look for:
- 'Digital Signature Appearances' (covers mostly Acrobat 6) or
- 'PDF Public-Key Digital Signature and Encryption Specification' (Acrobat
5 compatible)
You'll need to create different layers of so called appearances.
Regards,
Peter
> hello leonard!
>
> On Mon, 14 Jun 2004, Leonard Rosenthol wrote:
> > There is no digital signature in that file.
> > What makes you think there shoudl be?
> because i added it to the file:
>
> <</Filter /Adobe.PPKLite
> /M (D:20040608212045)
> /Name (10.10.10.200)
> /ByteRange [0 16243 18332 645]
> /Type /Sig
> /Contents <...the signature...>
> /SubFilter /adbe.pkcs7.detached
> >>
>
> but this doesn't work, though the byte-rande should be correct as well as
> the signature itself. yet it does not show in acrobat. so i am wondering
> if the format is incorrect or if i have forgotten something.
>
> regards
>
> randolph
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
> Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
> REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
--
"Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions