Hi,

thanks for your quick reply! Can you provide more information on how to do a 
full save with iText after removing the signature field? What I do right now is:

InputStream signedFileStream = // FileInputStream for a temporary java.io.File
OutputStream resultFileStream = // FileOutputStream for a different temporary 
File
PdfReader reader = new PdfReader(signedFileStream);
AcroFields acroFields = reader.getAcroFields();
acroFields.removeField("my_signature_name");
PdfStamper stamper = new PdfStamper(reader, resultFileStream);
stamper.close();
reader.close();

We want to use Acrobat Pro v8 to apply password protection to pdf files stored 
in a document management system, and Acrobat displays a message that this is 
impossible for signed/certified documents. That's why we tried to remove the 
signature programmatically, but setting password protection still fails with 
the same message.

Best regards,

  Rico
 
_________________________________________________________

Rico Starke / Capgemini sd&m / Hamburg 
Tel: +49 40 254491-451 / www.de.capgemini-sdm.com
Fax: +49 40 254491-11 / mailto:rico.sta...@capgemini-sdm.com
Capgemini sd&m AG, Lübecker Straße 128, 22087 Hamburg 

Zusammen. Für nachhaltigen Erfolg.
_________________________________________________________
Vorstand: Edmund Küpper (Vorsitzender), Burkhard Kehrbusch, Rüdiger Azone,
Dr. Uwe Dumslaff, Kai Grambow, Dr. Michael Rading, Josef Ranner
Aufsichtsrat: Pierre Hessler (Vorsitzender)
Sitz und Amtsgericht: München HRB 126057
 


-----Ursprüngliche Nachricht-----
Von: Leonard Rosenthol [mailto:lrose...@adobe.com] 
Gesendet: Donnerstag, 22. Januar 2009 13:15
An: Post all your questions about iText here
Betreff: Re: [iText-questions] Removing a signature thoroughly 
(acroFields.removeField not sufficient?)


Why would you want to remove a signature?   And do you have the rights to do so 
(eg. Are you the signatory)?

After removing the field, be sure to do a FULL save on the PDF and not an 
incremental one.

Leonard


On 1/22/09 12:29 PM, "Starke, Rico" <rico.sta...@gl-group.com> wrote:

Hi,

I have a problem removing a signature from a pdf file with iText. Can someone 
help me?

I remove the signature with acroFields.removeField and write the document back 
to disk using the pdfstamper. Now the signature is gone (acrobat says there are 
no signatures in the newly written document), but I still cannot change the 
security policy of the document.

What I want to do is to open File->Properties in Acrobat Pro v8, go to the 
Security tab and choose "Password Protection" in the combobox. Yet, Acrobat 
shows a message "the security policy cannot be changed because the document is 
signed or certified", although there are no security restrictions applied to 
the document (as displayed on the Security of the properties dialog), and 
although all signatures have been removed.

Note: I'm using the German version of Acrobat, so some of my translations given 
above may not match the english version exactly.

Any ideas how to remove this remainder of the signature with itext? I can 
provide more code snippets, acrobat screenshots or example pdf files if that 
helps.

Kind regards,

 Rico Starke



This e-mail and any attachment thereto may contain confidential information 
and/or information protected by intellectual property rights for the exclusive 
attention of the intended addressees named above. Any access of third parties 
to this e-mail is unauthorised. Any use of this e-mail by unintended recipients 
such as total or partial copying, distribution, disclosure etc. is prohibited 
and may be unlawful. When addressed to our clients the content of this e-mail 
is subject to the General Terms and Conditions of GL's Group of Companies 
applicable at the date of this e-mail.

If you have received this e-mail in error, please notify the sender either by 
telephone or by e-mail and delete the material from any computer.

GL's Group of Companies does not warrant and/or guarantee that this message at 
the moment of receipt is authentic, correct and its communication free of 
errors, interruption etc.


--
Leonard Rosenthol
PDF Standards Architect
Adobe Systems Incorporated

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
iText-questions mailing list iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php



This e-mail and any attachment thereto may contain confidential information 
and/or information protected by intellectual property rights for the exclusive 
attention of the intended addressees named above. Any access of third parties 
to this e-mail is unauthorised. Any use of this e-mail by unintended recipients 
such as total or partial copying, distribution, disclosure etc. is prohibited 
and may be unlawful. When addressed to our clients the content of this e-mail 
is subject to the General Terms and Conditions of GL's Group of Companies 
applicable at the date of this e-mail. 

If you have received this e-mail in error, please notify the sender either by 
telephone or by e-mail and delete the material from any computer.

GL's Group of Companies does not warrant and/or guarantee that this message at 
the moment of receipt is authentic, correct and its communication free of 
errors, interruption etc.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to