We’re pleased to announce the release of Spire.PDF for .NET 12.10.0. This update enhances cross-platform compatibility by aligning with the .NET Standard specification, and migrates the image processing logic from System.Drawing to SkiaSharp for .NET 6.0, .NET 9.0 and .NET 10.0, with dependencies updated accordingly. It also brings a range of bug fixes that improve the stability and reliability of the file format conversion features.
Here is a list of changes made in this release
| Category | ID | Description |
| Adjustment | - | Revised the .NET Core packaging approach. Cross-platform compatibility is realized by adhering to the .NET Standard specification. Dependencies in readme.txt were updated for .NET 6.0, .NET 9.0 and .NET 10.0 as listed below; all other platforms remain unchanged:
.NET 6.0 has external references to: SkiaSharp >= 3.116.1 Microsoft.Win32.Registry >= 5.0.0 System.Buffers >= 4.5.1 System.Memory >= 4.5.5 System.Text.Encoding.CodePages >= 6.0.0 HarfBuzzSharp >=8.3.0.1 .NET 9.0 has external references to: SkiaSharp >= 3.116.1 Microsoft.Win32.Registry >= 5.0.0 System.Buffers >= 4.5.1 System.Memory >= 4.5.5 System.Text.Encoding.CodePages >= 9.0.0 HarfBuzzSharp >=8.3.0.1 .NET 10.0 has external references to: SkiaSharp >= 3.116.1 Microsoft.Win32.Registry >= 5.0.0 System.Buffers >= 4.5.1 System.Memory >= 4.5.5 System.Text.Encoding.CodePages >= 10.0.0 HarfBuzzSharp >=8.3.0.1 For .NET 6.0, .NET 9.0 and .NET 10.0, the image processing logic has been migrated from System.Drawing to SkiaSharp, with relevant code modifications as follows: Original implementation using System.Drawing: using (Image image = doc.SaveAsImage )
{ image.Save(fileName, System.Drawing.Imaging.ImageFormat.Png); }
New implementation using SkiaSharp: using (var image = doc.SaveAsImage )
{ string filename = String.Format(outputFile + i + ".png");
System.IO.FileStream fileStream = new
System.IO.FileStream(fileName,
System.IO.FileMode.Create, System.IO.FileAccess.Write);
image.CopyTo(fileStream); fileStream.Flush(); }
|
| Bug Fix | SPIREPDF-6951 | Fixed the issue where links in the document were lost after merging documents and then adding content (annotations or text). |
| Bug Fix | SPIREPDF-7961 | Fixed the issue where an out-of-memory error "System.OutOfMemoryException" was thrown when converting OFD to PDF. |
| Bug Fix | SPIREPDF-8147 | Fixed the issue where the font size of rotated text became smaller after converting PDF to Excel. |
| Bug Fix | SPIREPDF-8155 | Fixed the issue where the extracted text was duplicated when extracting text by a rectangle area. |
| Bug Fix | SPIREPDF-8167 | Fixed the issue where images disappeared when zooming in Adobe Reader after converting XPS to PDF. |