(Free) Open-source PDF Generation/Export

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

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • 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.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • 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).

  • 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

  • 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

  • Best alternative to DomPDF?

    9 projects | /r/PHP | 25 Dec 2021
  • HTML, CSS, JAVASCRIPT?

    1 project | /r/technicalwriting | 7 Aug 2023
  • MkDocs vs Confluence

    1 project | /r/technicalwriting | 10 Jul 2023
  • HTML to PDF free library? .NET 6.0

    6 projects | /r/dotnet | 28 Jan 2023
  • Why isn't there a free tier of MadCap Flare for sample projects or self learning?

    1 project | /r/technicalwriting | 26 Jan 2023

Did you konow that C# is
the 9th most popular programming language
based on number of metions?