Skip to content

Releases: ANcpLua/CreatePdf.NET

v3.0.0

20 Nov 06:13

Choose a tag to compare

Overview

This major release adds .NET 10 LTS support with C# 14 language features and enhanced code quality.

What's New

Platform Support

  • .NET 10.0 LTS support
  • Updated to stable .NET 10 SDK (10.0.100)
  • Full C# 14 language feature compatibility

Code Quality

Dependency Injection for OCR

Fixed the rushed v2.0 implementation - OcrService now depends on IOcrProvider instead of static Tesseract calls. The provider is fully swappable and mockable through DI, eliminating static method dependencies on implementation details. Thanks @vernon-gant for the reminder!

Test Reliability

Fixed flaky tests with proper temp file handling.

NuGet Package

  • Added package icon (purple PDF with checkmark)
  • Optimized metadata for better discoverability (space-delimited tags, Title field, enhanced description)

Infrastructure

  • Updated Docker build to use stable SDK
  • Prioritized .NET 10 as primary target framework
  • Combined .NET version badges in README

Breaking Changes

Method Overloads

New overloads for AddText and AddPixelText methods may cause ambiguity in existing code with explicit parameter names.

Migration Guide:

// Before (may now be ambiguous):
.AddText("text", color: Dye.Blue, size: TextSize.Large)

// After (explicit overload selection):
.AddText("text", Dye.Blue, TextSize.Large)

Alternatively, update your code to use the new overload signatures.

Installation

dotnet add package CreatePdf.NET

Requirements: .NET 8.0, 9.0, or 10.0 SDK

Full Changelog

v2.0.1...v3.0.0

v2.0.0 - Multi-Framework Support

12 Jul 17:43
8aba6dc

Choose a tag to compare

What's New in v2.0.0

Multi-Framework Support

  • Added support for .NET 8.0 (LTS)
  • Added support for .NET 9.0

Improvements

  • Better Output Directory: PDFs now save to project root /output folder instead of deep bin directories
  • Enhanced Path Handling: Improved cross-platform file path sanitization using regex

Installation

dotnet add package CreatePdf.NET --version 2.0.0

Breaking Changes

None

Requirements

  • .NET 8.0, 9.0, or 10.0 SDK
  • Optional: Ghostscript and Tesseract for OCR functionality

CreatePdf.NET v1.1.0

12 Jul 08:45

Choose a tag to compare

Stream-based PDF Processing

  • Added Pdf.Load(stream)
  • Returns a PdfReader instance
  • Perfect for integrating with cloud storage, APIs, or distributed systems

Example Usage

// Basic OCR with default settings
await Pdf.Load(pdfStream).OcrAsync();

// Custom OCR settings for individual needs
await Pdf.Load(pdfStream).OcrAsync(new OcrOptions
{
  Dpi = 600,          
  PageSegmentationMode = 3
});

**Full Changelog**: https://github.com/ANcpLua/CreatePdf.NET/compare/v1.0.4...v1.1.0

CreatePdf.NET v1.0.4

11 Jul 12:18
94e2f16

Choose a tag to compare

Improved OCR accuracy for bitmap text
Fixed auto-contrast for similar foreground/background colors

CreatePdf.NET v1.0.3

11 Jul 10:36

Choose a tag to compare