EvoPdf Next · Markdown to PDF

Convert Markdown to styled PDF documents in .NET

The Markdown to PDF Converter turns Markdown content into high-quality PDF documents. Apply your own CSS to control the appearance, generate a table of contents from Markdown headings, add HTML headers, footers and stamps and apply security and digital signatures. The library targets .NET Standard 2.0 and runs on Windows, Linux and macOS, including Azure App Service, Azure Functions and Docker.

Version 14.60.1. Building EVO PDF libraries since 2010. Evaluate without registration; the demo output is watermarked until you set a license key. Licensed as part of the EVO PDF Toolkit.

Documentation · Samples and demos on GitHub · AI agent skills

ConsoleCLI
dotnet add package EvoPdf.Next.MarkdownToPdf.Windows

This is the Windows package; EvoPdf.Next.MarkdownToPdf.Linux and EvoPdf.Next.MarkdownToPdf.MacOS work the same way, or use the all-components EvoPdf.Next.* metapackage for your platform.

Program.csC#
using EvoPdf.Next;

var converter = new MarkdownToPdfConverter();
// baseUrl resolves relative image and link URLs
byte[] pdf = converter.ConvertStringToPdf(
    markdown, baseUrl);
File.WriteAllBytes("readme.pdf", pdf);
Convert a Markdown string. Full sample in the docs →
  • Windows 10, 11 and Windows Server 2016 to 2025 (x64 and ARM64)
  • Linux 64-bit distributions (x64 and ARM64)
  • macOS 12.0+ (Apple Silicon / ARM64)
  • .NET 10.0, 9.0, 8.0, 7.0, 6.0, .NET Standard 2.0
  • .NET Framework 4.6.2 to 4.8.1
  • Azure App Service and Azure Functions
  • Azure Cloud Services and Virtual Machines
  • Web, console and desktop applications
Features

What the Markdown to PDF component does

  • Convert Markdown documents from a string or from a file to PDF
  • Apply style sheets using CSS syntax to customize the appearance
  • Automatically create a table of contents based on headings in Markdown
  • Use custom PDF page settings to automatically reflow the content
  • Add HTML headers, footers or stamps to the generated PDF
  • Control the PDF document display with PDF viewer preferences
  • Encrypt, set permissions and set passwords for the generated PDF documents
  • Add digital signatures to the generated PDF document
  • Asynchronous Markdown to PDF methods that can be used with async and await
  • Docker containers for Windows and Linux

NuGet packages

Reference EvoPdf.Next.MarkdownToPdf.Windows, .Linux, .MacOS or the .Arm64 variants, or the EvoPdf.Next.* metapackage for your platform, which includes every component.

ConsoleCLI
dotnet add package EvoPdf.Next.MarkdownToPdf.Windows

On nuget.org: EvoPdf.Next.MarkdownToPdf.Windows · .Linux · .MacOS · .Windows.Arm64 · .Linux.Arm64 · metapackage EvoPdf.Next

Markdown to PDFDemoDocs + code
Licensing

Included in the EVO PDF Toolkit

Markdown to PDF is licensed as part of the EVO PDF Toolkit, which covers every component on this site, Next and Classic: 650 USD for a Deployment License (one application on a single server) or 1400 USD for a Company License (unlimited developers, applications and servers, redistributable). Perpetual, with updates and support for the first year.