string s=”
Name
nnnn
Age
dd
</tr>
</table>"
I need to convert this string to a pdf file.Can anybody help me for doing this?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
iTextSharp – Introducing Tables
The .NET framework does not contain any native way to work with PDF files. So, if you want to generate or work with PDF files as part of your ASP.NET web application, you will have to rely on one of the many third party components that are available. Google will help you to find one that fits your budget, as well as a range of open-source free components. One of the free components is iTextSharp, which is a port of a well known Java utility, iText.
Tables will probably be one of the most used elements in PDFs generated from ASP.NET applications to provide the structure for documents such as orders and invoices.
This overview is not an exhaustive examination of tables, but provides an introduction to working with them through iTextSharp
Method 2
I think a better option is:
http://www.pdfsharp.net/MainPage.ashx
One thing to note, for completeness, is that it’s not obvious how to “complete” pdf forms…
This link:
PDFSharp.Net Filling Form Fields on an existing PDF
Has that imporant tidbit squirreled away… search for starscream74’s post & amirtofighi’s follow-up for the details/sample.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0