Published on

PDF export options in dotnet

Authors

Introduction

A PDF writer is a crucial component for enterprise software when it comes to disseminating reports. There are numerous paid options available in the market. Let’s take a look at some of the well-supported libraries.


Key parameters

  • Active development
  • Exceptional performance
  • Free/ Paid
  • Long-term support

Available options

Quest PDF - Modern .NET library for PDF document generation
Puppeteer Sharp - Puppeteer Sharp is a .NET port of the official Node.JS Puppeteer API
iText7 PDF - iText Core is our innovative PDF library to program PDF documents

Comparison

Features

FEATURESQuestPDFPuppeteer SharpIText7 (HTML to PDF)IText7 (PDF document)
ConceptCanvasHeadless browserPDF HTMLPDF canvas
SpacingYesYesYesYes
Header RepetitionYesYesYesYes
Footer RepetitionYesYesYesYes
ChartsYesYesYesYes
CSS 3NAYesYesNA
External CSSNAYesYesNA

Performance

# Records with 10 columnsQuestPDFPuppeteer SharpIText7 (HTML to PDF)IText7 (PDF document)
1k1,692 ms13,990 ms30,787 ms6,886 ms
5k2,676 ms58,657 ms215,658 ms25,785 ms
10k4,174 ms189,147 ms681,387 ms101,855 ms
20k7,864 msErrorError368,169 ms
50k16,997 ms1,995,440 ms
100k32,458 msError
200k66,875 ms
500k186,909 ms
1 Million496,650 ms

Licenses

QuestPDFPuppeteer SharpIText7
LICENCSEMore than 1M USD revenue: Purchase License, MIT for othersMITAGPL
PRICINGProfessional: 500 USD per year, Enterprise: 3000 USD per yearFREEREQUEST PRICE QUOTE

Conclusion

Puppeteer Sharp is a suitable option for those who are not primarily concerned with performance and are looking for a free solution.

On the other hand, QuestPDF outperforms many Java alternatives in terms of performance. It leverages the Skia library internally, which is a well-established canvas library.

The licensing model is per developer, which can be expensive for developers working on smaller applications. Additionally, annual purchases are required for security updates. Despite these costs, considering its value and the limited alternatives available in the market, it can be a viable choice.