The current limitations with certifying is that it will only work with
Acrobat 7 and higher and that no further changes are allowed in the
document.

Paulo 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Wahaj Khan
> Sent: Friday, November 17, 2006 9:57 AM
> To: [email protected]
> Subject: [iText-questions] signed and certified not working
> 
> Hi All,
> 
> I am trying to certify a PDF which has an empty signature 
> field and a text
> field, using the code below, allowing only signing to be done 
> later in the
> existing empty signature field but when I opened the 
> certified document in
> Acrobat 7, it does not allow me to sign any empty signature field.
> 
> Here is the code I am trying:
> 
>     System.out.println("Signing and Certifying...");
>     PdfReader reader = new PdfReader(m_strInputPDFDocument);
>     FileOutputStream fout = new 
> FileOutputStream(a_strOutputPDFDocument);
> 
>     // creating the appearance
>     PdfStamper stp = PdfStamper.createSignature(reader, fout, 
> '\0', null,
> false);
>     PdfSignatureAppearance sap = stp.getSignatureAppearance();
>     sap.setCrypto(key, chain, null, 
> PdfSignatureAppearance.WINCER_SIGNED);
>     sap.setReason("I'm the author");
>     sap.setLocation("Lisbon");
>     sap.setCertified(true);
>     stp.setEncryption(true, "","testing", 256);//encrypt with 
> no open PDF
> permissions
> 
> When I am only encrypting the PDF, 256 parameter does work 
> correctly works
> and I can sign the PDF later on.
> I am using iText 1.4.6 with JRE 1.5.
> 
> Am I doing some thing wrong here.
> 
> Best Regards,
> Wahaj
> 
> 


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.


-------------------------------------------------------------------------
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