Nong.PdfPig 1.1.0

dotnet add package Nong.PdfPig --version 1.1.0
                    
NuGet\Install-Package Nong.PdfPig -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Nong.PdfPig" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nong.PdfPig" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Nong.PdfPig" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Nong.PdfPig --version 1.1.0
                    
#r "nuget: Nong.PdfPig, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Nong.PdfPig@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Nong.PdfPig&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Nong.PdfPig&version=1.1.0
                    
Install as a Cake Tool

Nong.PdfPig

UglyToad PdfPig 的 Nong fork,基于上游 master(2026-07-16, commit 5ee5c589),目标框架 net10.0,Apache 2.0 许可。

与上游的差异

版本 差异
1.0.0 目标框架统一 net10.0;修复 #1266 CJK 字体名乱码(GBK/GB18030 字节的字体名按 windows-1252 解码成乱码,现已在 FontDetails 构造时启发式修复);清理上游死框架配置与注释残骸

用法

与上游 PdfPig 完全一致:

using UglyToad.PdfPig;

using var document = PdfDocument.Open("doc.pdf");
foreach (var page in document.GetPages())
{
    Console.WriteLine(page.Text);
}

命名空间与类名保持上游原样,替换包引用即可(PackageReference Include="Nong.PdfPig" Version="1.0.0")。

许可

Apache License 2.0,派生自 Apache PDFBox / FontBox(见包内 NOTICES.txt)。

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 73 8/9/2026
1.0.0 89 8/3/2026