Skip to content

v3.0.0

Latest

Choose a tag to compare

@ANcpLua ANcpLua released this 20 Nov 06:13
· 8 commits to main since this release

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