(Free) Open-source PDF Generation/Export

This page summarizes the projects mentioned and recommended in the original post on /r/dotnet

Our great sponsors
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • SaaSHub - Software Alternatives and Reviews
  • wkhtmltopdf-windows

    wkhtmltopdf - Convert html to pdf using webkit (qtwebkit). Windows binaries

    I remember I used Razor to build HTML that I could then throw into wkhtmltopdf. There is a c# wrapper somewhere on github.

  • gotenberg

    A developer-friendly API for converting numerous document formats into PDF files, and more!

    Otherwise, any pdf to hml chromium based solution hosted via docker, like gotenberg](https://github.com/gotenberg/gotenberg) or browserless.io(which is free if you create open source). Generating pdfs from html directly in .NET was always a pain. Wkhtml (and wrappers that use it) uses WebKit and comes with a load of issues of its own, similar to running and styling anything in Safari. Using chromium based engine saves a lot of time as it's the most popular way of doing it these days. You can also use puppeteer-sharp with local chromium if you host your app on something that allows it(f.e. not Azure Functions).

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • PuppeteerSharp

    Headless Chrome .NET API

    Otherwise, any pdf to hml chromium based solution hosted via docker, like gotenberg](https://github.com/gotenberg/gotenberg) or browserless.io(which is free if you create open source). Generating pdfs from html directly in .NET was always a pain. Wkhtml (and wrappers that use it) uses WebKit and comes with a load of issues of its own, similar to running and styling anything in Safari. Using chromium based engine saves a lot of time as it's the most popular way of doing it these days. You can also use puppeteer-sharp with local chromium if you host your app on something that allows it(f.e. not Azure Functions).

  • BlastPDF

    A C# library for PDF parsing and editing

  • PdfSharpCore

    Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)

    PdfSharpCore https://github.com/ststeiger/PdfSharpCore, a .NET Core port of PdfSharp, might come to the rescue as it has largely removed GDI+.

  • pandoc

    Universal markup converter

  • blazor-reports

    Generate PDFs from Blazor Components

    BlazorReports

  • Onboard AI

    Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.

  • carbone

    Fast and simple report generator, from JSON to pdf, xslx, docx, odt...

    Do you know carbone.io https://github.com/carboneio/carbone it’s work with templates (docx, xmlx, etc) you cant run a micro service with a endpoint and, from .Net call that API and send payload data. Work ready

  • pdf-render-service

    Gotta plug a rendering service my company created and then open sourced -- runs on top of react-pdf. Basically it exposes the rendering engine via a RESTful API.

  • react-pdf

    📄 Create PDF files using React

    Gotta plug a rendering service my company created and then open sourced -- runs on top of react-pdf. Basically it exposes the rendering engine via a RESTful API.

  • chromic_pdf

    Convenient HTML to PDF/A rendering library for Elixir based on Chrome & Ghostscript

    If you wnat to take a look on how to optimise this flow, use flsgs and ideas from this well made Elixir project, https://github.com/bitcrowd/chromic_pdf

  • WkHtmlToPdf-DotNet

    C# .NET Core wrapper for wkhtmltopdf library that uses Webkit engine to convert HTML pages to PDF.

    I just googled real quick and this popped up: https://github.com/HakanL/WkHtmlToPdf-DotNet

  • scryber.core

    Scryber.Core is a dotnet html to pdf engine written entirely in C# for creating beautiful flexible, flowing documents from html templates including css styles, data binding, svg drawing and encryption

    u/WolfenBass1, just spotted your post, and feel free to check out Scryber.Core. It sounds like it supports what need, and will run client-side in Blazor (as well as server side). Using templates, based on html with data binding with expressions you should be able to do what you need. It is open source, and free. Also on Nuget, and any feedback is gratefully received.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts