§HOW-TO GUIDES · C# · SELECTPDF.UNIVERSAL

C# PDF how-to guides, with code that runs.

Short, complete C# programs for common PDF tasks in .NET, each explained step by step. Every sample on these pages is compiled and run on Windows and Linux before it is published, and the PDF it produced is on the page.

§LATEST GUIDES
§HTML TO PDF
§HEADERS AND FOOTERS
§HTML TO IMAGE
§PERFORMANCE
§EDIT PDFS
§FORMS
§SECURITY AND REDACTION
§ACCESSIBILITY AND PDF/A
§STANDARDS AND E-INVOICING
§WORD TO PDF
§PDF TO TEXT AND IMAGES
§ASP.NET CORE
§DEPLOY

Fonts on Linux: the same PDF on every server, in every language (C#)

Make HTML to PDF in C# look the same on Windows and Linux with SelectPdf.Universal: built-in Liberation fonts, Noto fonts for every script, your own fonts.

Verified sample

HTML to PDF on ARM64 Linux (AWS Graviton) in C#

Convert HTML to PDF in C# on ARM64 Linux, such as AWS Graviton, with SelectPdf.Universal: the linux-arm64 engine package and an ARM64 Docker image, no apt-get.

Verified sample

HTML to PDF on Google Cloud Run in C#

Convert HTML to PDF in an ASP.NET Core container on Google Cloud Run: packages and fonts, a Dockerfile with the non-root user, and the gcloud deploy settings.

Verified sample

HTML to PDF in AWS Lambda with C# (x86_64 and arm64)

Generate PDFs from HTML in an AWS Lambda function in C#, packaged as a container image on x86_64 or arm64 Graviton, with the Dockerfile and deployment steps.

Verified sample

HTML to PDF in Azure Functions with C#

Generate PDFs from HTML in an Azure Functions HTTP trigger with C#: the isolated worker, the plans that work, the Linux and Windows packages, deployment.

Verified sample

HTML to PDF in Docker on Linux with C# (no apt-get)

Convert HTML to PDF in a Linux Docker container with SelectPdf.Universal: two NuGet packages, a stock .NET runtime image, and no system packages to install.

Verified sample

HTML to PDF on Azure App Service (Linux) in C#

Convert HTML to PDF in an ASP.NET Core app on Azure App Service for Linux: which plan to use, the packages and fonts it needs, and zip deployment.

Verified sample
§TROUBLESHOOTING

Looking for something else? The SelectPdf.Universal documentation covers every class and option, and the online demo runs the converters in your browser.