Hi,
I am using itext for the first time and I need to insert data from a
field on a web form into an existing PDF. I found this bit of code,
reading it, the PDF is opened and it then looks for a marker in the PDF
and inserts the data in that marker. What I'm unsure of is what type of
marked its looking for, is it a bookmark in the PDF document?
Dim formfile = ("D:\VS 2008
Projects\SendReturnsLabel\App_Data\UK_Returns_Label.pdf")
Dim newfile = ("D:\VS 2008
Projects\SendReturnsLabel\App_Data\UK_Returns_LabelOut.pdf")
Dim PdfReader As New PdfReader(formfile)
Using fs As New FileStream((newfile), FileMode.Create)
Dim stamper As New PdfStamper(PdfReader, fs)
Dim fields As AcroFields = stamper.AcroFields
fields.SetField("test", txtCaseID.Text)
fields.SetField("test2", "CaseID1")
stamper.Close()
End Using
Stewart Mabon
IT Manager
Sykes Global Services Limited
Nether Road
Galashiels
TD1 3HE
Phone: +44 (0) 1896 664299
Fax: +44 (0) 1896 757786
E-mail: [email protected]
<mailto:[email protected]>
Web: www.sykes-gala.com <outbind://2/www.sykes-gala.com>
P SAVE PAPER - Please do not print this e-mail unless absolutely
necessary
...A Better Customer Experience
The information contained in this e-mail is intended only for the
personal and confidential use of the designated recipient or recipients
named above and may contain confidential or privileged information. If
the reader of this message is not the intended recipient, you are hereby
notified that you have received this message in error and that any
review, re-transmission, dissemination, distribution, copying, or other
use of, or taking of any action in reliance upon this message or any
attachments to this message, is strictly prohibited. If you have
received this e-mail message in error, please notify the sender
immediately and delete the material from all computers
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText® is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php