Winnovative Software Logo

 HTML to PDF Converter - Excel Library - ASP.NET Charts - RTF to PDF Converter
 PDF Merge and Split - PDF Security - PDF Viewers - PDF to Text - Images Extractor

 
Skip Navigation Links
 
.NET Core Logo

Winnovative HTML to PDF Converter Client for .NET Core

Winnovative HTML to PDF Converter Client for .NET Core can be integrated in any .NET Core application to convert URLs, HTML strings and streams to a PDF document, to a raster image or to a SVG vector image.

The converter offers full support for HTML tags, HTML5 with CSS3, SVG and Web Fonts, page breaks control, media type rules, repeating HTML table header and footer, hierarchical bookmarks, tables of contents, fillable PDF forms, HTML with page numbering in header and footer.

The library was designed and tested to work reliably in multithreaded environments and to completely release all the resources used during conversion after each conversion. This makes it suitable for usage in applications running a long period of time without interruption.

The software package you can download from our website contains demo applications to convert URLs and HTML strings to PDF.

The licensing model is simple and you can purchase a license online. A purchased license never expires, is royalties free and it includes free technical support and software update for 1 year from purchase date.
Winnovative HTML to PDF Client for .NET Core Demo

Online Demo

Winnovative HTML to PDF Converter for .NET Core API

API Reference

Winnovative HTML to PDF Converter for .NET Core Support

Support

Download Winnovative HTML to PDF Converter

Download

HTML to PDF Converter for .NET Core Box
Download Icon Software Download

Winnovative HTML to PDF Converter Client for .NET Core is distributed in a Zip archive. in a Zip archive. You can follow the link below to download the software. The Zip archive contains the client library you can use in your .NET Core applications, the HTML to PDF Server for Windows and for Azure and a demo application.

Download HTML to PDF Converter v15.0 for .NET Core Client
Winnovative HTML to PDF Client Library for .NET Core is also available as a NuGet Logo ImageNuGet package that can be referenced directly from your Visual Studio projects. NuGet is a Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects that use the .NET Framework.
Install Icon Software Installation

In order to use the Winnovative HTML to PDF Converter for .NET Core you first have to install the Winnovative HTML to PDF Server. The server was built on .NET library to extend its capabilities to other platforms and languages. The client library that you link in your .NET Core applications will connect to the server to convert HTML to PDF, to Image or to SVG.

Winnovative HTML to PDF Converter Server can run either in a Windows Service on a Windows machine or in an Azure Cloud. You can find detailed installation and uninstallation instructions in the Readme.txt file from the root of the downloaded package.

Code Sample Icon .NET Core Code Sample

The Winnovative HTML to PDF Converter CLient for .NET Core API allows you to convert a HTML document to PDF in just a few lines a code. The programming interface is also very rich and allows you customize the generated PDF document in various ways. The code below is copied from the demo for HTML to PDF Converter that you can find the in the Demo folder of the software Zip package.

[HttpPost]
public ActionResult ConvertHtmlToPdf(IFormCollection collection)
{
    // Get the server IP and port
    String serverIP = collection["textBoxServerIP"];
    uint serverPort = uint.Parse(collection["textBoxServerPort"]);

    // Create a HTML to PDF converter object
    HtmlToPdfConverter htmlToPdfConverter = null;
    if (collection["ServerType"] == "radioButtonUseTcpService")
        htmlToPdfConverter = new HtmlToPdfConverter(serverIP, serverPort);
    else
        htmlToPdfConverter = new HtmlToPdfConverter(true, collection["textBoxWebServiceUrl"]);

    // Set optional service password
    if (collection["textBoxServicePassword"][0].Length > 0)
        htmlToPdfConverter.ServicePassword = collection["textBoxServicePassword"];

    // Set license key received after purchase to use the converter in licensed mode
    // Leave it not set to use the converter in demo mode
    htmlToPdfConverter.LicenseKey = "fvDh8eDx4fHg4P/h8eLg/+Dj/+jo6Og=";

    // Set HTML Viewer width in pixels which is the equivalent in converter of the browser window width
    htmlToPdfConverter.HtmlViewerWidth = int.Parse(collection["htmlViewerWidthTextBox"]);

    // Set HTML viewer height in pixels to convert the top part of a HTML page 
    // Leave it not set to convert the entire HTML
    if (collection["htmlViewerHeightTextBox"][0].Length > 0)
        htmlToPdfConverter.HtmlViewerHeight = int.Parse(collection["htmlViewerHeightTextBox"]);

    // Set PDF page size which can be a predefined size like A4 or a custom size in points 
    // Leave it not set to have a default A4 PDF page
    htmlToPdfConverter.PdfDocumentOptions.PdfPageSize = SelectedPdfPageSize(collection["pdfPageSizeDropDownList"]);

    // Set PDF page orientation to Portrait or Landscape
    // Leave it not set to have a default Portrait orientation for PDF page
    htmlToPdfConverter.PdfDocumentOptions.PdfPageOrientation = SelectedPdfPageOrientation(collection["pdfPageOrientationDropDownList"]);

    // Set the maximum time in seconds to wait for HTML page to be loaded 
    // Leave it not set for a default 60 seconds maximum wait time
    htmlToPdfConverter.NavigationTimeout = int.Parse(collection["navigationTimeoutTextBox"]);

    // Set an adddional delay in seconds to wait for JavaScript or AJAX calls after page load completed
    // Set this property to 0 if you don't need to wait for such asynchcronous operations to finish
    if (collection["conversionDelayTextBox"][0].Length > 0)
        htmlToPdfConverter.ConversionDelay = int.Parse(collection["conversionDelayTextBox"]);

    // The buffer to receive the generated PDF document
    byte[] outPdfBuffer = null;

    if (collection["HtmlPageSource"] == "convertUrlRadioButton")
    {

        string url = collection["urlTextBox"];

        // Convert the HTML page given by an URL to a PDF document in a memory buffer
        outPdfBuffer = htmlToPdfConverter.ConvertUrl(url);
    }
    else
    {
        string htmlString = collection["htmlStringTextBox"];
        string baseUrl = collection["baseUrlTextBox"];

        // Convert a HTML string with a base URL to a PDF document in a memory buffer
        outPdfBuffer = htmlToPdfConverter.ConvertHtml(htmlString, baseUrl);
    }

    // Send the PDF file to browser
    FileResult fileResult = new FileContentResult(outPdfBuffer, "application/pdf");
    if (collection["openInlineCheckBox"].Count == 0)
    {
        // send as attachment
        fileResult.FileDownloadName = "Getting_Started.pdf";
    }

    return fileResult;
}