Solved

Pdf form auto fill at runtime

Posted on 2010-11-15
3
572 Views
Last Modified: 2012-08-14
Hej Experts,

I am building a web application using asp.net and C# and i have some pdf forms that are listed and i want to build functionality so that user choses a form and clicks "fill" and form gets filled from customer data which is stored in db.

Can somone please show direction about how cud it be possible?

Please note that aim is not to generate a pdf from html but rather edit in existing pdf and make some kind of Field mapping to form fields!!

Thanks in advanced :).
0
Comment
Question by:hussainAbid
3 Comments
 
LVL 3

Accepted Solution

by:
Epitel0920 earned 250 total points
ID: 34176456
Could http://kuujinbo.info/cs/itext_fill.aspx be what you are looking for.
0
 
LVL 10

Assisted Solution

by:GeoffSutton
GeoffSutton earned 250 total points
ID: 34247605
This will help you out:
http://www.codeproject.com/KB/aspnet/Creating_PDF_documents_in.aspx

You need to download a plugin from Sourceforce call iTextSharp.  Then in your PDF Files you need to place label controls which can be accessed and filled at runtime.  The control names are very picky and case sensitive, but it works very well once you get the naming straight.

Another option you may want to use is the built in Crystal reports, which will allow you to generate custom PDF's based on the data passed in.  That data can be pulled from an application dataset or from a custom query in the report.  This is the approach you want to use as it is a tried and true .net plugin that has been thoroughly tested.  iTextSharp is an "In Development" item that is completed but no guarantees it hasn't been changed since I used it last.

HTH,
Geoff
0
 

Author Closing Comment

by:hussainAbid
ID: 34247752
I did not get advice on how to unlock locked files (pdf) for example official form.

Answer I found out is to use the same pdf as background and use a third part PDF makers like Nitro PDF maker for example and place control in pdf and then use ItextSharp to auto complete. Thanks
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question