Print2HTML5 Application Programming Interfaces

There are two kinds of Application Programming Interfaces (APIs) supported by Print2HTML5:

APIs for programmatic conversion of documents to HTML or SVG

APIs for programmatic conversion of documents to HTML/SVG are available in Server mode of Print2HTML5.

Document types supported for conversion with APIs

Basically you can convert any printable documents for which there is an application installed on your computer capable of printing these documents and registered in Windows for programmatic printing. The kinds of documents available for conversion include (but not limited to):

  • Microsoft Office documents: Word (.doc, .docx), Excel (.xls, .xlsx), PowerPoint (.ppt, .pptx);
  • PDF documents (.pdf);
  • Text documents (.txt);
  • RTF documents (.rtf);
  • HTML pages (.htm, .html);
  • Image files (.png, .jpg, .tiff, .tif, .bmp, .gif);
  • OpenOffice documents: Writer (.odt), Calc (.ods), Impress (.odp), Draw (.odg), Math (.odf);
  • Microsoft Outlook message documents (.msg);
  • Microsoft Project documents  (.mpp);
  • Adobe InDesign documents (.indd);
  • Autodesk AutoCAD documents (.dwg).

If an application is not registered in Windows for programmatic printing of documents of the given type but has an API for printing, you still can convert them with Print2HTML5 using this API and Print2HTML5 printing jobs.

Print2HTML5 OLE Automation API

Print2HTML5 OLE Automation API lets you easily convert any printable documents from any programming language that can make COM or OLE Automation calls. These include Visual Basic, .NET (VB.NET, C#, J#), C/C++, Java, Delphi, PHP, ASP, Ruby, Python, Perl, JavaScript and others.

Print2HTML5 OLE Automation exposes a set of objects which have properties and methods allowing you to convert documents to HTML format and control document features. Please see About Print2HTML5 OLE Automation API help topic for more information on Print2HTML5 OLE Automation API.

Print2HTML5 OLE Automation API samples

We have several samples demonstrating using of Print2HTML5 OLE Automation API from various programming languages: ASP, ASP.NET/C#, Delphi, Java, PHP, VBScript, Visual C++. These samples are contained in the Print2HTML5 SDK that can be downloaded from our download page. The samples are located in the Automation\Samples folder of SDK archive file. Please refer to ReadMe.htm file located in each sample folder for sample installation and usage instructions.

Enhanced Batch Processing

Enhanced Batch Processing is essentially a Windows command line conversion tool. You may invoke a command that converts a document or an entire folder with documents to HTML format. The command line syntax is very simple and allows you to control a lot of conversion options. You may invoke Enhanced Batch Processing commands either manually from Windows Run window or from your programs written in any language that supports invoking Windows command line commands. These include Visual Basic, .NET (VB.NET, C#, J#), C/C++, Java, Delphi, PHP, Ruby, Python, Perl, BAT files and others.

Please see Enhanced Batch Processing help topic for more information on Enhanced Batch Processing:

Print2HTML5 Document API

Print2HTML5 Document API lets you control converted HTML documents: scale them, show or hide toolbar buttons, scroll the documents, print them, etc. Usually such actions can be performed by user using the document toolbar. However, you may also invoke such actions from a web page in which you embed the document. You may even hide the standard toolbar and implement your own toolbar calling Print2HTML5 Document API functions. Please see Print2HTML5 Document Application Programming Interface help topic for more information on Print2HTML5 Document API:

Print2HTML5 Document API samples

We have a sample demonstrating using of Print2HTML5 Document API from a web page. This sample is located at the Print2HTML5 SDK that can be downloaded from our download page. The sample is located in the DocumentAPI folder of SDK archive file. Please refer to ReadMe.htm file located in the sample folder for sample installation and usage instructions.