Create, Fill, Encrypt and Sign PDFs in .NET With a Free NuGet Package

A DEV Community tutorial walks through using the free sgcPDF .NET NuGet package to handle common PDF tasks in code. The package can generate documents with text, tables and images, build and fill forms, extract text and images, encrypt files with AES-256, save as PDF/A-2b, and sign with PAdES B-B. The author notes the library works headlessly, so the same calls run in console apps or background services. The guide targets several .NET versions, including net8.0 used in its samples, and includes a separate signing package for the final example. Each sample is presented as its own file with a Run() method, and the code was reportedly compiled and run against the published packages.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in