How to convert HTML with JavaScript or Java Applet code to PDF?

      In this article, I will show you how to convert HTML to PDF. When converting normal HTML file to PDF, we can find lots of tools available in market but when converting HTML file which contains Javascript or Java Applet or iFrame or SVG or Flash codes, things will go different.  Based on this need, VeryDOC developed software named VeryDOC Doc Converter COM, which can solve this matter easily. And by this software toolkit, you can also convert files of Microsoft Word, PowerPoint, Excel, JPG, PNG, GIF, HTML and others to PDF by script together with other application like VB, VC, C# etc. Please check more related information of this software on homepage, in the following part, let us check how this software works.

Step 1. Free trial Doc Converter COM

  • All the VeryDOC software are free to be downloaded and then have free trial including the COM version software. When downloading finishes, there will be an zip file. Please extract it to some folder then you can check related elements.
  • When converting HTML to PDF, please make sure you have the following application installed:
    Windows Internet Explorer 5.0 or newer and PDFcamp V1.8 or newer, or PDFcamp Pro V1.8 or newer
  • Please install DocConverter COM product by the following steps:
  • 1.1. Please download and install PDFcamp Printer v2.3 or PDFcamp Printer Pro v2.3 from our website,
    1.2. Please download DocConverter COM from our website,
    1.3. Please unzip "" package to a folder, and run "install_as_exe.bat" file to install the DocConverter COM into your system,
    1.4. 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.
    1.5. You can run "doc2pdf_html" or "doc2pdf_vb" or "doc2pdf_exe" projects to test its capability from HTML file and VB project.

Step 2. Convert HTML with Javascript or Java Applet to PDF

  • When converting HTML file which contains Javascript or Java Applet or iFrame or SVG or Flash codes to PDF file, please refer to the following example.
    "html2pdf.exe" "C:/javascript_test.htm" "C:/output.pdf" "EnableSupportApplet=yes,DelayTimeForPrintApplet=10000"
    As the conversion from HTML with complicated structure to PDF may take a little long times, we specify the conversion time as 10000 millisecond. And when input the code templates, please enable function of supporting Applet, then conversion could be done very nice.
  • It is known to all that Java applet is a small application written in Java, and delivered to users in the form of bytecode. The user launches the Java applet from a web page. The Java applet then executes within a Java Virtual Machine (JVM) in a process separate from the web browser itself, yet it can appear in a frame of the web page, in a new application window, or in Sun's AppletViewer, a stand-alone tool for testing applets. We have added this technology to our software. So this function could be fulfilled without any problem.

By this simply code template, you can convert HTML with  Javascript or Java Applet or iFrame or SVG or Flash code to PDF easily. 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!