Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a requirement to generate PDF from pre-defined template using .NET (web). The thing is client will be uploading new templates now and again. The application should handle the upload without any code changes (very minimal if at all needed) and data should get populated from data tables. I tried using 'iTextSharp' but that requires lot of code level changes which the client doesn't agree with. How can we achieve this? Should the client upload in HTML format (or some other format?) with some placeholders that can be replaced with actual values? Are there any 3rd party tools I can use? I have been breaking my head over this since the past few weeks, so any help would be much appreciated.


What I have tried:

I tried using 'iTextSharp' but that requires lot of code level changes which the client doesn't agree with
Posted
Updated 16-Nov-20 5:47am
v2
Comments
[no name] 12-Nov-20 13:21pm    
You're looking for the "lazy man's" PDF writer? And you want someone else to do that.
DerekT-P 13-Nov-20 7:52am    
I use Pechkin, which is reliable and accurate (takes HTML and creates PDF) but the downside is it's a 32-bit DLL.

1 solution

There many out there that you can try. However, most free and open-source stuff requires a bit of work compared to paid ones.

Here are a few tools that that I used before:

wkhtmltopdf[^] - Free and it works
Iron[^] - Paid and easy to integrate and use
Aspose PPDF[^] - Paid

Other paid tools:
* abcpdf
* pdftron

The bottom line is, if you want less/minimal development efforts to integrate PDF generation, then you should consider buying a commercial one.
 
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