You need to do your form filling BEFORE the PDF is "Reader Enabled".

Leonard

On Aug 21, 2007, at 3:43 PM, Robert Cearley wrote:


In adobe professional 8.0, there is a setting called: Enable Usage rights in adobe reader. This setting allows you to create a pdf document so a person can enter data into the pdf and save it.

If I populate the pdf document using the setnodetext method below, the populate method works; however, the document seems to lose the ability for a user to type in data into the document and resave it.

Here's what I'm trying to do. The code below will populate some basic fields on a pdf. The pdf will be sent to a user that will add additional text in the pdf. He will save the pdf with the data he entered; however, the save option is lost. Any ideas?


Sample code:


PdfReader reader = new PdfReader(sourcefilename);
stamp = new PdfStamper(reader, File.Create(base.NewFileName));
AcroFields form = stamp.AcroFields;
XfaForm xfaForm = form.Xfa;
XmlNode internalIdNode;

internalIdNode = xfaForm.FindDatasetsNode("firstname");
xfaForm.SetNodeText(internalIdNode, "john doe");

stamp.FormFlattening = false ;
stamp.Close();

Thanks...
---------------------------------------------------------------------- ---
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________
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/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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