a preface to this question is probably necessary. I am relatively new to 
iText, have relatively poor skills in mathematical abstraction and also 
(probably for the same reason) have failed mind-reading 101. As a result 
some of my questions are pedestrian and while the answer should be 
obvious to me, it often is not.

Acrobat 7 and 8 make it difficult or impossible to create a form without 
using the "Life Cycle Designer" which means that the forms become XFA 
forms and there's nothing I can do about it. (Others are buying acrobat 
and designing the forms - my job is to fill in the fields on the way to 
the browser.

So far I have:

reader = new PdfReader("file.pdf");
XfaForm xf = new XfaForm(reader);
XmlNode node = xf.FindDatasetsNode("patientname");
node.InnerText = "Smith, Fred";

These are my questions.
1 - Is this a valid way to set the values of the data fields?
2 - Does SetNodeText do anything that this doesn't do?
3 - Assuming that I have gotten the data into the fields, how to I get 
the filled form into the OutputStream of the HttpResponse object? (I 
know that I should be able to figure this out but I really need an 
example, because nothing that I have tried has come close to working.)

Thanks in advance,
Dan Essin

-------------------------------------------------------------------------
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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to