Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to create a ASP.NET page that needs to get information from the user using ASP.NET text fields, CheckBox and RadioButton and fill-it to PDF fields. the PDF file is a contract for buy.

I need a way in which can take the information filled by the user, and fill it to the PDF, and make it available for the user to download, and the save PDF file in database after fill it.

I have already PDF file with some fields in PDF should be filled by user, the user who use this page will fill some textbox(s) and there are checkBox(s) & RadioBoutton(s), foe example, in ASP page he fill his full name and submit , the page will appear a link contain the pdf file and in the field for the name we will found the name that he typed in asp page. I hope my idea is clear to all,

I hope find answer, thanks for your Efforts all : )


this is the file that I want to filling it by ASP page c# code:
File









...
Posted
Updated 14-Jan-13 18:05pm
v6
Comments
David_Wimbley 13-Jan-13 3:48am    
What have you tried? Can you provide a code snippet or something to show that you've at least given it a shot?

Take a look at either itextsharp or PDFsharp for PDF manipulation...this imo will be the easiest way to go about doing what you need.
Simple Developer 13-Jan-13 4:00am    
sorry I dont have a code snippet, my question about filling pdf forms by C#
how can I do that ?!
I dont want to create pdf file , I want filling already file created.

I hope find answer

thanx all

1 solution

HI
u can write to existing PDF by using iTextSharp. I have worked on the problem you have mentioned. so go with these posts


Creating PDF documents with iTextSharp[^]

Creating PDF Tables using C# (.NET 2.0) and iTextSharp[^]
 
Share this answer
 
Comments
Simple Developer 13-Jan-13 4:09am    
thanx for your efforts, I am sorry but I need to fill fields in pdf not create new one.
I have a pdf file with many text fields and checkbox,

how can I fill it auto by C# ?
Faisalabadians 13-Jan-13 4:12am    
links are given you to see how to write to PDF. once you know the API of iTextSharp you can write to your existing field. if you still can do any thing, give me PDF file, i will show you little code for doing that.
Simple Developer 13-Jan-13 4:52am    
how can I send to you the file ?
Faisalabadians 13-Jan-13 9:10am    
you can upload file in your question.
Simple Developer 13-Jan-13 9:17am    
I uploaded it in Question

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