Create pdf file in Asp.net

南笙酒味 提交于 2019-11-28 01:25:00

问题


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?


回答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




回答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.



来源:https://stackoverflow.com/questions/3252872/create-pdf-file-in-asp-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!