Convert HTML to PDF in Universal Windows Platform apps
UWP applications run in a sandbox that cannot host a rendering engine. The EVO PDF client library for .NET (.NET Standard 2.0) sends HTML pages and strings to an EVO PDF Server on a machine the app can reach and receives the PDF (or an image, or SVG) back, with the same features and API as the HTML to PDF library: HTML5, CSS3, JavaScript, web fonts, headers and footers, bookmarks, table of contents, forms and security.
Classic v14.0: Client for any .NET Standard 2.0 platform, EVO PDF Server on Windows. Evaluate without registration; the demo output is watermarked until you set a license key. Licensed with the HTML to PDF Converter license or the EVO PDF Toolkit.
dotnet add package EvoPdf.ClientThe .NET Standard 2.0 build of the client runs inside the UWP app; the conversions run on an EVO PDF Server, on Windows
using EvoPdfClient; // EVO PDF Server address and port var converter = new HtmlToPdfConverter( "server.mycompany.com", 40000); byte[] pdf = converter.ConvertHtml( "<b>Hello World</b>", null); // save in the app's local folder and open it var file = await ApplicationData.Current.LocalFolder .CreateFileAsync("page.pdf", CreationCollisionOption.ReplaceExisting); await FileIO.WriteBytesAsync(file, pdf); await Launcher.LaunchFileAsync(file);
EvoPdfClient API as on every other .NET platform. API reference →- Universal Windows Platform apps, Windows 10 / 11
- .NET Standard 2.0 client library
- EVO PDF Server on Windows 10 / 11 / Server 2016–2025
- PDF, images and SVG output
- Same API as the .NET client on every platform
The app sends HTML, the server renders it and the app receives the PDF
1. Install the EVO PDF Server
On a Windows machine the app can reach, a server in your network, a Virtual Machine or a Cloud Service in Azure, or the developer's own machine while testing. The server is a separate download (original or New Edition); its installer registers it as a Windows service.
2. Reference the client
Add the EvoPdf.Client NuGet package (or the .NET Standard 2.0 assembly from the package) to the UWP project and allow network access in the app manifest: Internet (Client) for servers on the internet, Private Networks (Client & Server) for servers in the local network.
3. Convert
Create an HtmlToPdfConverter with the server address, call ConvertUrl or ConvertHtml and write the returned bytes to the app's storage. HtmlToImageConverter and HtmlToSvgConverter work the same way.
Everything the HTML to PDF library does, from a UWP app
- HTML5, CSS3, JavaScript, SVG, Canvas and web fonts
- Page breaks from CSS and from the API
- HTML headers and footers, page numbers
- Repeated table headers and footers
- Live URLs, internal links, bookmarks, table of contents
- PDF forms from HTML forms
- Passwords, permissions, digital signatures
- HTML to image and HTML to SVG
- Create, edit and merge PDF documents with the same client
UWP and EvoPdf Next
EvoPdf Next, the current generation of the library, runs its rendering engine in-process on Windows, Linux and macOS and does not target UWP. For UWP applications the .NET client with an EVO PDF Server is the supported way to convert HTML to PDF.
Download the client and the server
The .NET client package contains the client assemblies for .NET Framework 4.0+ and .NET Standard 2.0 and demo projects with full C# source; the EVO PDF Server is a separate download.