Generate PDF from rendered webpage(HTML and Flash)

Question:I am trying to generate a PDF from a web page (or series of web pages). The pages contain, not only HTML/Javascript, but also Flash images (graphs/charts/etc). I have been searching diligently for a library (ASP), but I have still to come up with something that works. (Note: I did find some solution, but that has a different problem.) The killer for all these apps tends to be Flash requirement. The library can be FOSS/purchased/etc - I'm open to all suggestions at the moment. I hope I can find a solution on VeryPDF?

Answer: According to your needs, maybe you can have a free trial of this software: VeryPDF Doc Converter COM, which can help you convert HTML to PDF or generate a PDF from a web page (or series of web pages) even if the webpage containing Javascript, Flash images (graphs/charts/etc). Meanwhile as software component, you can call it from a library (.NET) easily. Please check more information of this software on homepage, in the following part, let us check how to make it work briefly.

Step 1. Install Doc Converter COM

  • Please download and install PDFcamp Printer v2.3 or PDFcamp Printer Pro v2.3 from our website and DocConverter COM. Please unzip "" package to a folder, and run "install_as_exe.bat" file to install the DocConverter COM into your system.Then you can run HTML2PDF.exe from command line to try, HTML2PDF.exe is a Windows Command Line Tool, you can run it from command line window.
  • When use this software to convert HTML to PDF, please make sure there is Windows Internet Explorer 5.0 or newer installed.

Step 2. Generate PDF from rendered webpage.

  • When you use this software from ASP, please refer to the following code template:
  • 1. Please run "install_as_exe.bat" to install the DocConverter COM first, and make sure the "doc2pdf_service.exe" application is running,
    2. Please make sure that you have already installed "PDFcamp Printer" before,
    3. Please run following ASP examples to try,
                            set PdfCreator = server.createobject("PdfOut.PdfCreator")
                            PdfCreator.html2PDF= ""
                            PdfCreator.fileName = "C:/google.pdf"
                            result = PdfCreator.Doc2PDFViaSocket()
                            set PdfCreator = nothing

  • When convert a HTML file which contains Javascript or Java Applet or iFrame or Flash codes to PDF file,(You need wait more than 10000 millisecond before convert such HTML files)
    "html2pdf.exe" "C:/javascript_test.htm" "C:/output.pdf" "EnableSupportApplet=yes,DelayTimeForPrintApplet=10000"

Please check more examples and functions of this software on user manual, there are too many to be listed here. During the using, if you have any question, please contact us as soon as possible.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!