Alle 09:02, lunedì 20 novembre 2006, Wahaj Khan ha scritto:
> Hi Paulo,
>
> OK but when I certify a PDF, it makes existing signatures ( if present)
> corrupt. Adobe tells me that there is some problem with the byte range.
> These signatures were OK before certifying. Is this an iText limitation. If
> yes then any idea when will this be implemented.
>
> Best Regards,
> Wahaj
>

Hi Wahaj,

to apply certified signature you can write (for example):

...
PdfStamper stamper = PdfStamper.createSignature(reader, fout,
                                '\0');
PdfSignatureAppearance sap = stamper.getSignatureAppearance();
sap.setCertified(2);
sap.setVisibleSignature(new com.lowagie.text.Rectangle(340, 400, 490,
                              500), 1, null);

for approval signature you will write:

PdfStamper stamper = PdfStamper.createSignature(reader, fout,
                                '\0', null, true);
PdfSignatureAppearance sap = stamper.getSignatureAppearance();
sap.setCertified(0);
sap.setVisibleSignature("Signature**");

** Empty fieldname

-- 
Antonio
http://www.blia.it

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to