Time-consuming Html to PDF conversion with ExpertPDF / Aspose.Pdf components

I am trying to create a PDF file based on a dynamically generated HTML report generated by our web application.

HTML generation and rendering is fast (1-4), with the exception of older browsers (IE6 / IE7), but when I use one of the mentioned PDF components to generate a PDF version, it can take up to several minutes.

For example, I have an HTML report containing only text - approximately 1 million characters - it takes ~ 28 seconds to convert to a PDF file, which is only 1.15 MB and ~ 250 pages in size.

Is there a way to optimize HTML to make work easier for PDF components?

+4
source share
6 answers

I think you need to check the below component for you question.

They give an online demo to verify the conversion ....

http://www.essentialobjects.com/Products/EOPdf/Default.aspx

http://www.winnovative-software.com/

For reference: read this page and answer to it ...

Convert HTML to PDF in .NET

+2
source

Better try to avoid HTML -> PDF conversion, if you can - sometimes there are a lot of problems.

I tried two other approaches (both of them are free) and both work very well, although they are very different:

  • Use Microsoft RDLC report templates . Has a nice and simple designer in Visual Studio. You only need to create a template, fill it with some data in the code and that’s it. It is fast, easy to use and maintain. I use this in many webapps and I am very happy with it.
  • Use the iTextSharp library. It is incredibly fast. You can create PDF files from XML or from code (which may be a disadvantage of complex PDF files, but gives you full control if you need it).
+1
source

You can try the XF Rendering Engine from Ecrion Software (www.ecrion.com). They also have a WYSIWYG designer.

thanks

+1
source
  • At first, I did to improve the conversion performance - it is to convert my html report to the box structure using the constructor
  • I used this component Winnovative HTML to PDF Converter
0
source

It would be better if you could share a sample input HTML file with a piece of code. In addition, we recently published a newer version of Aspose.Pdf for .NET (version 6.3.0) . Try this out and see if this helps in your scenario. If you still find the same problem, I would recommend that you post a request along with the HTML and code snippet in the Aspose.Pdf forum . Our support team will continue to investigate and guide you accordingly.

Disclosure: I work as an evangelist developer at Aspose.

0
source

I used in many projects, faster and more stable. Try the following
http://code.google.com/p/dompdf/

0
source

All Articles