Menu

Working with PDF Metadata in C#: A Complete Guide to Setting and Extracting Document Properties
📰

Working with PDF Metadata in C#: A Complete Guide to Setting and Extracting Document Properties

DEV Community: dotnet·Jack9012·14 days ago
#RXgpTnEP
Reading 0:00
15s threshold

PDF document properties are metadata embedded within a file, including its title, author, subject, keywords, and producer name. Although this information does not appear directly on PDF pages, it is useful for document searches, archive management, and automated workflows. In C# projects, Free Spire.PDF for .NET provides a straightforward way to write and read these properties. This article explains both operations and highlights several implementation details.

Environment Setup

Free Spire.PDF for .NET is a standalone PDF processing library that runs without Adobe Acrobat or other third-party software. Install it in your project through NuGet:

Install-Package FreeSpire.PDF

Enter fullscreen mode

Exit fullscreen mode

Note that the free edition limits PDF loading and creation to 10 pages; pages beyond this limit are truncated.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.