PDFiumZ is a modern .NET wrapper for PDFium with a comprehensive high-level API. Built on PDFium binaries with P/Invoke bindings. Supports Linux-x64, OSX-x64, Win-x64, Win-x86.
Current PDFium Version: 145.0.7592.0 (chromium/7592) - Latest PDFium with enhanced rendering and stability
Choose Your Language | 选择语言:
Project Resources | 项目资源:
PDFiumZ is multi-targeted:
net10.0,net9.0,net8.0netstandard2.1,netstandard2.0
dotnet add package PDFiumZusing PDFiumZ;
using PDFiumZ.HighLevel;
// Initialize library (call once at application start)
PdfiumLibrary.Initialize();
try
{
// Open and render a PDF
using var document = PdfDocument.Open("sample.pdf");
using var page = document.GetPage(0);
using var image = page.RenderToImage();
// Save as PNG
image.SaveAsSkiaPng("output.png");
// Extract text
var text = page.ExtractText();
Console.WriteLine(text);
}
finally
{
PdfiumLibrary.Shutdown();
}- High-Level API: Easy to use classes for documents, pages, annotations, and forms
- Cross-Platform: Works on Windows, Linux, and macOS
- Async Support: Modern async/await APIs for I/O bound operations
- Multi-Framework: Supports .NET 10/9/8 and .NET Standard 2.0/2.1
- Create PDFs: Generate new PDF documents from scratch
- Merge & Split: Combine multiple PDFs or extract specific pages
- Rotate Pages: Rotate individual pages or entire documents (90°, 180°, 270°)
- Watermarks: Add text watermarks with custom opacity, rotation, and position
- Security Info: Read encryption status and document permissions
- Content Editor: Add text, images, shapes, and paths with a powerful fluent API
- Fluent Document Generation: QuestPDF-style declarative API for complex layouts
- HTML to PDF: Convert simple HTML/CSS to PDF documents
- Table Builder: Create complex tables with fluent API
- Text Markup: Highlight, Underline, StrikeOut
- Shapes: Square, Circle, Line
- Text: Sticky Notes, Free Text boxes
- Drawing: Ink (freehand), Stamps
- Form Fields: Read and write form field values
- Image Generation: Simple, high-performance PDF to image conversion
- Thumbnail Generation: Generate page thumbnails with customizable size and quality ✨ NEW
- Text Extraction: Extract plain text with positions and formatting
- Image Extraction: Extract embedded images from PDF pages
- Search: Find text with position information
Requirements: .NET 10.0 SDK or later.
dotnet build src/PDFiumZ.sln -c ReleaseApache-2.0. See LICENSE.
如果这个项目对您有帮助,欢迎赞助支持! If this project helps you, please consider sponsoring!

