Generate HTML To PDF Control for the .NET applicat

2019-04-02 20:55发布

问题:

Possible Duplicate:
Generation PDF from HTML (component for .NET)

Has anyone used any open source or paid .NET Control which does the conversion job from html to pdf file? At the moment, i am using Winnovative convertor control. But it has a performance limitation during the generation of bulk pages (like more than 1000) in the pdf. The limitation comes when we use bigger images in the html content. From last 4 months i've been working on the winnovative control and found plenty of major bugs in it. For a small application and usage. winnovative is good but not for the level where application will be used by thousands of clients.

Please suggest.

回答1:

We currently use ABCpdf in one of our more complex applications. It has served us well and is not very expensive at all. I like that fact that I can send it raw HTML text and it will render it to a PDF in memory or as a file so we use to generate PDFs on the fly and serve them up via the web without actually ever saving it disk ever.

We have been using it for about 3 years and early on I had to use their support for a very odd issue that was very specific and the support was very fast and help solved the issue quickly.

You can find more information on their website at: http://www.websupergoo.com/abcpdf-1.htm



回答2:

From this question I recently learned of wkhtmltopdf. Aside from the completely unpronounceable name, it seems to do a decent job of conversions of single pages, and supports some nifty options for generating bookmarks and a TOC from the headings.

I have no idea how it handles heavy loads...



回答3:

www.pdfsharp.com



回答4:

Here's link to a code project article discussing a free library:

http://www.codeproject.com/KB/aspnet/Creating_PDF_documents_in.aspx

There's also activepdf: http://www.activepdf.com/



回答5:

I have used two:

  • Alt-Soft's Xml2PDF (which also converts XHTML to PDF)
  • ExpertPDF's Html-to-PDF

Both worked quite okay, but have their quirks and troubles.

Marc



回答6:

At last my company has decided to use pdfReactor from www.realobjects.com. It is much faster and better as compared to winnovative pdf control.



回答7:

I advise to try PDF Duo .NET component with main function to convert HTML to PDF.