I never realized binding to a template was so easy.
Vikash RL 5-Oct-15 17:36What is the pdfTemplate variable which is present in ListFieldNames() used in your programming? Is it automatically generated or are you created on your own? If it so, how you created it? | |
Sign in· View Thread | ![]() |
Our end users want to have a picture box on PDF (employee photo) along with regular text fields like firstname, lastname. The picture gets dynamically generated from the database. Does the itextsharp API provide a possibility of passing binary information (array of bytes in some picture format) ?
Thank you,
Saurabh
I was wondering if there was a way to add the signature even though it isn't a physical field? I know PDF allows you to sign the form. That is what I was wanting to also be able to do programmatically. Add an image on the W4 where the signature is supposed to go as well as add the date.
I will be saving the W4 PDF file in a secure folder for Human Resources to access later.
Member 11758669 22-Jun-15 21:33 Shai Aharoni 4-Feb-14 15:32I am using the exact same code which appears on this article and getting an XML error.
Any idea what can be wrong?
This is the code I use, thanks in advance.
string pdfTemplate = TemplatePath; var pdfReader = new PdfReader(pdfTemplate); var outputPath = OutputPath; var pdfStamper = new PdfStamper(pdfReader, new FileStream(outputPath, FileMode.Create)); AcroFields formFields = pdfStamper.AcroFields; formFields.SetField("Text1", "1111"); pdfStamper.FormFlattening = false; pdfStamper.Close(); //When this line is executed I get the XML error return outputPath;