By Date: <-- -->
By Thread: <-- -->

Changing document properties of pdf



Hi,

I have investigated on the problem and I have found out, that I can sign the created document in Acrobat Standard 6 but not in Acrobat Reader 7 or Acrobat Reader 6.

Is there something special that I have to do or set a parameter in order to can sign the document in Acrobat Reader?

The method I used for creating an empty signature filed is the one that I have found in the mailing list.

                                    PdfReader pdf = new PdfReader("c:/test.pdf");

                                    PdfStamper stp = new PdfStamper(pdf, new FileOutputStream("c:/test_sign.pdf"));

                                    PdfFormField sig = PdfFormField.createSignature(stp.getWriter());

                                    sig.setWidget(new Rectangle(100, 100, 200, 200), null);

                                    sig.setFlags(PdfAnnotation.FLAGS_PRINT);

                                    sig.put(PdfName.DA, new PdfString("/Helv 0 Tf 0 g"));

                                    sig.setFieldName("Signature1");

                                    //sig.setPage(1);

                                    //stp.addAnnotation(sig, 1);

                                    sig.setPage(pdf.getNumberOfPages());                           

                                    stp.addAnnotation(sig, pdf.getNumberOfPages());

                                    stp.close();

Regards

Paul

 


From: itext-questions-bounces (at) lists.sourceforge.net [mailto:itext-questions-bounces (at) lists.sourceforge.net] On Behalf Of Mair, Paul
Sent: venerdì 7 luglio 2006 11.48
To: itext-questions (at) lists.sourceforge.net
Subject: [iText-questions] Changing document properties of pdf

 

Hi,

I have added an empty signature field into a existing pdf document.

But I’m not able to sign the document because in the Document Properties the Sign is set to Not Allowed.

The PDF Version of the file is 1.3 (Acrobat 4.x).

Is there a possibility to manipulate this flag with iText?

Regards

Paul

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions