Click here to Skip to main content
15,850,265 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
iTextSharp is used to generate the pdf format of the webpage . But how to make the user input the data through the pdf forms and store the content in the database.How to embed adobe pdf forms in a web paaplication
Posted
Comments
Debopam Pal 1-Dec-13 4:57am    
Why do you want to embed abode PDF forms in web application? Is HTML Form not enough to take input data from the user and store in the databse? Don't make a simple thing, complex unnecessary ...First you should know the purpose of PDF Forms.

1 solution

It depends on what you want. According to iText documentation, iText supports such interactive element as AcroForms.
These functionality of such elements are described here: http://en.wikipedia.org/wiki/Portable_Document_Format#Interactive_elements[^].

As to iTestSharp, its releases are synchronized with iText, so the same features should be available. For most of the documentation, you need to look at Java documentation, which is easy to understand for a C# developer.

A "fillable field" is represented by the class com.itextpdf.text.pdf.TextField:
http://api.itextpdf.com/itext/com/itextpdf/text/pdf/TextField.html[^].

This is some basic C# code sample: http://kuujinbo.info/iTextInAction2Ed/index.aspx?ch=Chapter08&ex=TextFields[^].

You can look for the questions on interactive PDF elements in this forum: http://support.itextpdf.com/forum/17[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900