|
Using Adobe Professional to add a signature, there is an option to mark other fields in the form as read only after signed. Is there a way to do this using iText? Also I saw that there is a function PdfSignatureAppearance.setVisibleSignature(String fieldName) which will make a signature visible. Is there a function to hide a signature?
Thanks Ming |
|
Hi Ming, just set the signature appearance like this sap.setCertificationLevel(PdfSignatureAppearance.CERTIFIED_NO_CHANGES_ALLOWED); This disallows all changes. Visibility of a signature is done by adding visual elements. If you don't any visual element, the signature will be inivisible. Greetings Andreas ----- Original Message ---- From: mingxun <[hidden email]> To: [hidden email] Sent: Tuesday, March 17, 2009 3:45:56 PM Subject: [iText-questions] Add Signature to mark other fields as read only Using Adobe Professional to add a signature, there is an option to mark other fields in the form as read only after signed. Is there a way to do this using iText? Also I saw that there is a function PdfSignatureAppearance.setVisibleSignature(String fieldName) which will make a signature visible. Is there a function to hide a signature? Thanks Ming -- View this message in context: http://www.nabble.com/Add-Signature-to-mark-other-fields-as-read-only-tp22560565p22560565.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ iText-questions mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ iText-questions mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php |
|
In reply to this post by mingxun
mingxun escreveu:
> Using Adobe Professional to add a signature, there is an option to mark other > fields in the form as read only after signed. Is there a way to do this > using iText? Believe so but can't really help here... > Also I saw that there is a function > PdfSignatureAppearance.setVisibleSignature(String fieldName) which will make > a signature visible. Is there a function to hide a signature? > > Not a function. Just don't use setVisibleSignature :) Everything else is the same. Use setVisibleSignature only if you want a visible signature. > Thanks > Ming > > ;) ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ iText-questions mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php |
|
In reply to this post by mingxun
mingxun wrote:
> Using Adobe Professional to add a signature, there is an option to mark other > fields in the form as read only after signed. Is there a way to do this > using iText? Also I saw that there is a function > PdfSignatureAppearance.setVisibleSignature(String fieldName) which will make > a signature visible. Is there a function to hide a signature? You are mixing different things making it very hard to answer your question. Adding the signature as a visible field or not, is one thing. Making fields in a form read only is another thing. Also, are you talking about author or recipient signatures? If you're talking about author signatures, the PDF reference let's you choose between the following options: 1 No changes to the document are permitted; any change to the document invalidates the signature. 2 Permitted changes are filling in forms, instantiating page templates, and signing; other changes invalidate the signature. 3 Permitted changes are the same as for 2, as well as annotation creation, deletion, and modification; other changes invalidate the signature. That's different from making fields read only (which is also possible with iText). In other words: your question sounds like "how many days?" We can only answer with a counter question: "do you mean how many days are there in a month? in a week? in a year?" -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ iText-questions mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php |
|
In reply to this post by mingxun
---------------------------------------- > Date: Tue, 17 Mar 2009 07:45:56 -0700 > From: [hidden email] > To: [hidden email] > Subject: [iText-questions] Add Signature to mark other fields as read only > > > Using Adobe Professional to add a signature, there is an option to mark other > fields in the form as read only after signed. Is there a way to do this > using iText? Also I saw that there is a function LOL- I found out that "doing nothing explicit" achieves this result trying to copy the US IRS 1040 "form" as the output removes the options to fill in fields and the Reader mentions this when you try to display the "copy". > PdfSignatureAppearance.setVisibleSignature(String fieldName) which will make > a signature visible. Is there a function to hide a signature? > > Thanks > Ming > > -- > View this message in context: http://www.nabble.com/Add-Signature-to-mark-other-fields-as-read-only-tp22560565p22560565.html > Sent from the iText - General mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > iText-questions mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php _________________________________________________________________ Windows Live⢠Contacts: Organize your contact list. http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns!503D1D86EBB2B53C!2285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009 ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ iText-questions mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php |
|
In reply to this post by mingxun
[hidden email] wrote:
> Thanks for answering my question. DO NOT REPLY TO PERSONAL E-MAIL ADDRESSES. REPLY TO THE LIST! > One problem I am trying to solve is as follows. > I need to present a PDF document to 2 users to sign. Recipient signatures. Not author signatures. OK? (Please use the correct terminology; otherwise you sound as if you have no clue about what you are doing; which isn't very professional for an employee of EDS.) > When I present the document to the first user, the document > should not have the second signature or hide the second signature. Should not have! Signing creates revisions. Revision 1 of 2 of the document will have signature 1. Revision 2 of 2 of the document will have signature 1 and 2. > After the first user signs the first signature, I will add the > second signature or make the second signature visible and present > the document to the second user. OK. > I want to see when I do that is there a way not to invalidate the > first signature. Please read the documentation!!! As explained in chapter 16 of "iText in Action"; you MAY NOT CHANGE the existing PDF file, but you need to use APPEND MODE. See for instance: http://1t3xt.be/?X000014 There's an example that has two signatures. This is the key line: PdfStamper stamper = PdfStamper.createSignature(reader, os, '\0', null, true); -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ iText-questions mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php |
| Powered by Nabble | Edit this page |
