GdPicture.NET Logo

HTML Format Support in GdPicture.NET Document Imaging SDK

Add HTML format capabilities to your document imaging applications.

View, manage and convert to PDF HTML files and web pages.
Render images, CSS, forms, hyperlinks, and JavaScript in your PDF documents.
The GdPicture.NET converter supports HTML conversion from a string, file, or URL and offers many options to control page size and formatting.
All the operations are secured thanks to a sophisticated cache-control system.

60 Days Free Trial Download GdPicture.NET Now!

Illustration HTML Format Support in GdPicture.NET SDK

Main features

  • View HTML pages in WinForm and WPF viewers.
  • Convert HTML pages to PDF.
  • Capture HTML stream in DocuVieware.
  • GdPicture.NET allows you to manage a pool of instances that will speed up processing.
  • CSS, Javascript, images, SVG, hyperlinks, forms support.

Settings

  • Specify the page width, in points, of the resulting document when converting from the source HTML file. The default value is 1920.
  • Specify the page height, in points, of the resulting document when converting from the source HTML file. The default value is 1080.
  • Specify the left/right/top/bottom page margin, in points, of the resulting document when converting from the source HTML file.

Use cases

Here are a few examples on how to use HTML support in your applications.

  • Capture the content of an HTML website to PDF.
  • Capture a webpage (like a blog article for instance) and edit it in a viewer.
  • View HTML.
  • Insert HTML content into an existing PDF.
  • Convert an HTML page to PDF.
  • Capture online HTML documentation and convert to PDF.
  • Index HTML content.
  • And more!

Online HTML documentation converted to PDF.

HTML support in GdPicture.NET

A browser is required to support HTML content as input into the whole toolkit scope.
Our HTML support currently uses Chrome's rendering engine to display your document with the highest accuracy, whether Chrome is installed on the machine or not.

If Chrome is already installed on your machine, no action on your part is necessary.

If it’s not the case, you have two choices:

1. Install Google Chrome Portable in the installation folder. You can download Google Chrome Portable here.

2. Set the path of the chrome.exe portable version with the SetWebBrowserPath() method.

HTML format viewer

The DocuVieware demo below shows how HTML format can be integrated into existing content.

How to use

Download and install GdPicture.NET package from here.

You will find a compiled demo applications in [Install directory]\Samples\Bin\

You will find an example of a full application in [Install directory]\Samples\DotNet\GdPicture.NET 14\

You will find other code snippets within the online reference guide found here https://guides.gdpicture.com