EVO HTML to PDF Converter

EVO PDF Client for .NET Overview

EVO PDF Client for .NET Documentation

EVO HTML to PDF Converter Client for .NET is a library that can be easily integrated in any type of .NET applications to convert web pages, HTML strings and streams to PDF or to image. The converter has support for HTML5, CSS3, SVG, Canvas, Web Fonts and JavaScript. It combines the powerful printer friendly PDF format with the flexibility of the HTML format into a modern tool for creating nicely formatted and easily maintainable PDF reports and documents.

The main functionality of the library is to convert HTML documents to PDF. But the library does much more than this. You can also convert HTML to raster images or HTML to SVG using the appropriate interfaces and you can edit, merge or split existing PDF documents.

In order to use the EVO HTML to PDF Converter Client for .NET in your applications you first have to install the HTML to PDF Server in Microsoft Azure Cloud or on a Windows machine. The HTML to PDF Server can run in various Azure and Windows environments. It can run in an Azure Cloud Service Worker Role, in an Azure Cloud Service Web Role, in an Azure Service Fabric Application, in an IIS ASP.NET Web Application or in a Windows Service.

Use a local HTML to PDF TCP/IP Server

If the HTML to PDF Server is installed on the same Windows machine where you run your application then the HTML to PDF Converter client object constructor does not need additional parameters.

A typical scenario for this usage case is when you install the HTML to PDF Server in a Windows Service on the same machine running the client library.

The client HTML to PDF Converter object above will try to connect to the HTML to PDF Server installed on the localhost default IP address 127.0.0.1 on the default TCP port 40001.

C#
using EvoPdf.HtmlToPdfClient;
HtmlToPdfConverter htmlToPdfConverter = new HtmlToPdfConverter();
byte[] outPdfBuffer = htmlToPdfConverter.ConvertUrl(url);
Use a remote HTML to PDF TCP/IP Server

If the HTML to PDF Server was installed as a TCP/IP server on a remote machine then you'll have to specify the HTML to PDF Service IP address in the HTML to PDF Converter client object constructor.

A typical scenario for this usage case is when you install the HTML to PDF Server in an Azure Cloud Service Worker Role, in an in an Azure Service Fabric Application or in a Windows Service on a remote Windows machine.

The code below initializes a HTML to PDF Converter object that will connect to to a server running on a specified IP address and TCP port. If the port is not specified then the default port 40001 will be used.

C#
using EvoPdf.HtmlToPdfClient;
HtmlToPdfConverter htmlToPdfConverter = new HtmlToPdfConverter(serverIP, serverPort);
byte[] outPdfBuffer = htmlToPdfConverter.ConvertUrl(url);
Use a remote HTML to PDF HTTP Server

If the HTML to PDF Server was installed as a HTTP server on a remote machine then you'll have to specify the HTML to PDF Service HTTP URL address in the HTML to PDF Converter client object constructor.

A typical scenario for this usage case is when you install the HTML to PDF Server in an Azure Cloud Service Web Role or in an IIS ASP.NET Web Application.

The code below initializes a HTML to PDF Converter object that will connect to to a server running at a specified HTTP URL.

C#
using EvoPdf.HtmlToPdfClient;
HtmlToPdfConverter htmlToPdfConverter = new HtmlToPdfConverter(true, serverHttpUrl);
byte[] outPdfBuffer = htmlToPdfConverter.ConvertUrl(url);
See Also

Reference

Other Resources