We're pleased to announce the release of Spire.PDF for Java 12.12.0. This version optimizes the speed of converting PDF pages to images, and enhances PDF to Word conversion by fixing incorrect table content layout in flow layout mode, extra spaces in tables, and garbled text caused by Type3 fonts, and also fixes issues in PDF to PDF/A-1A conversion and MCID resolution. More details are listed below.

Here is a list of changes made in this release

Category ID Description
Optimization SPIREPDF-8192 Optimized the speed of converting PDF pages to images.
Bug Fix SPIREPDF-5005 Fixed issue with incorrect table content layout when converting PDF to Word in flow layout mode.
Bug Fix SPIREPDF-5758 Fixed an issue where extra spaces appeared between characters in tables when converting a PDF to Word.
Bug Fix SPIREPDF-8069 Fixed an issue with inconsistent layout compared with the original document after converting a PDF to PDF/A-1A.
Bug Fix SPIREPDF-8199 Fixed an issue where an incorrectly resolved MCID in tagged marked content caused the generated document to fail to open.
Bug Fix SPIREPDF-8210 Fixed issue with garbled text caused by Type3 fonts when converting PDF to Word.
Click the link below to download Spire.PDF for Java 12.12.0:
Monday, 30 November 2026 08:28

Spire.Office for Java 11.11.0 is released

We are pleased to announce the release of Spire.Office for Java 11.11.0. In this version, Spire.Doc for Java supports setting Word chart series styles, Spire.XLS for Java adds support for VBA macro management, Spire.PDF for Java fixes issues when used with Tess4J and converting PDF to Word. In addition, several issues that occurred during the conversion and processing of Word/Excel/PDF files have been successfully fixed. More details are listed below.

Click the link to download Spire.Office for Java 11.11.0:

Here is a list of changes made in this release

Spire.Doc for Java

Category ID Description
New Feature SPIREDOC-11882 Added support for setting chart series styles, including line color, width, line style and fill effects.
Document document = new Document();
document.loadFromFile(inputFile);
Section section = document.getSections().get(0);
for (Paragraph paragraph : (Iterable<? extends Paragraph>) section.getParagraphs()) {
    for (int i = 0; i < paragraph.getChildObjects().getCount(); i++) {
        if (paragraph.getChildObjects().get(i) instanceof ShapeObject) {
            Chart chart = ((ShapeObject) paragraph.getChildObjects().get(i)).getChart();

            // 1. Line format: color, width, line style, dash style
            Stroke stroke = chart.getSeries().get(0).getDataPoints().getFormat().getStroke();
            stroke.getFill().setColor(Color.RED);
            stroke.setWeight(2);
            stroke.setLineStyle(ShapeLineStyle.Single);
            stroke.setDashStyle(DashStyle.Solid);

            // 2. Solid fill: fill type, color, transparency
            Fill fill = chart.getSeries().get(0).getDataPoints().getFormat().getFill();
            fill.setFillType(FillType.Solid);
            fill.setColor(Color.BLUE);
            fill.setTransparency(0.3);

            // 3. Gradient fill: gradient type, direction, angle, gradient stops
            Fill gradientFill = chart.getFormat().getFill();
            gradientFill.setFillType(FillType.Shade);
            gradientFill.setGradientType(GradientFillType.Linear);
            gradientFill.setGradientDirection(GradientFillDirection.Linear_Down);
            gradientFill.setGradientAngle(90);
            gradientFill.getGradientStops().add(new GradientStop(0, Color.WHITE, 1));
            gradientFill.getGradientStops().add(new GradientStop(1, Color.BLUE, 0.5));

            // 4. Pattern fill: pattern type, foreground color, background color
            Fill patternFill = chart.getLegend().getFormat().getFill();
            patternFill.setFillType(FillType.Pattern);
            patternFill.setPattern(PatternType.Percent_10);
            patternFill.setForegroundColor(Color.RED);
            patternFill.setBackgroundColor(Color.WHITE);

            // 5. Picture/texture fill: image source, transparency, stretch or tile
            Fill imageFill = chart.getAxisX().getFormat().getFill();
            imageFill.setFillType(FillType.Picture);
            imageFill.setImage(imagePath);
            imageFill.setImageTransparency(0.5);
            imageFill.stretchImage(0, 0, 100, 100);
        }
    }
}
document.saveToFile(outputFile, FileFormat.Docx);
document.close();
Bug Fix SPIREDOC-11615 Fixed the issue where the table of contents was updated incorrectly.
Bug Fix SPIREDOC-12111 Fixed the issue where footnote and body superscript numbers were positioned too low when converting Word to PDF.
Bug Fix SPIREDOC-12124
SPIREDOC-12125
Fixed the issue where converting Word to PDF threw "java.lang.StackOverflowError" exception.
Bug Fix SPIREDOC-12136 Fixed the issue where converting ODT to PDF threw "java.lang.NullPointerException" exception.

Spire.XLS for Java

Category ID Description
New Feature - Supports adding VBA macros.
Workbook workbook = new Workbook();
Workbook workbook = new Workbook();
//Add a VBA project to the document
IVbaProject vbaProject = workbook.getVbaProject();
vbaProject.setName("SampleVBAMacro");
vbaProject.setCodePage(936); //Set the encoding to support Chinese

//Add a module to the VBA project
IVbaModule vbaModule = vbaProject.getModules().add("frmDataEntry", VbaModuleType.UserForm);

workbook.saveToFile(outputFile, FileFormat.Xlsm);
workbook.dispose();
New Feature - Supports getting and setting VBA macros.
Workbook wb = new Workbook();
wb.loadFromFile(inputFile);
Worksheet ws = wb.getWorksheets().get(0);

IVbaProject vbaProject = wb.getVbaProject();
// Project properties
vbaProject.setPassword("1234");
vbaProject.setName("modify");
vbaProject.setDescription("Description");
vbaProject.setHelpFileName("image1.png");
vbaProject.setConditionalCompilation("DEBUG = 2");
vbaProject.setLockProjectView(true);
String text = "Password: " + vbaProject.getPassword() + "\n";//The set password can be retrieved
TestUtil.writeAllText(outputFile_TXT, text);
// Sheet properties
IVbaModule mod = vbaProject.getModules().getWorksheetModule(ws);
mod.setName("IVbaModule");
mod.setSourceCode("Dim lRow As Long");
mod.setType(VbaModuleType.Module);

wb.saveToFile(outputFile);
wb.dispose();
New Feature - Supports copying VBA macros.
Workbook wb1 = new Workbook();
wb1.loadFromFile(inputFile_1);
IVbaProject vbaProject1 = wb1.getVbaProject();

Workbook wb2 = new Workbook();
wb2.loadFromFile(inputFile_2);
IVbaProject vbaProject2 = wb2.getVbaProject();

Workbook wb3 = new Workbook();
wb3.loadFromFile(inputFile_3);
IVbaProject vbaProject3 = wb3.getVbaProject();

Workbook wb4 = new Workbook();
wb4.loadFromFile(inputFile_4);
IVbaProject vbaProject4 = wb4.getVbaProject();

Workbook dest = new Workbook();
dest.getVbaProject().getModules().add(vbaProject1.getModules().get("SampleModule").clone(dest.getVbaProject().getModules()));
dest.getVbaProject().getModules().add(vbaProject2.getModules().get("Employee").clone(dest.getVbaProject().getModules()));
dest.getVbaProject().getModules().add(vbaProject2.getModules().get(1).clone(dest.getVbaProject().getModules()));
dest.getVbaProject().getModules().add(vbaProject3.getModules().get(0).clone(dest.getVbaProject().getModules()));
dest.getVbaProject().getModules().add(vbaProject4.getModules().get(0).clone(dest.getVbaProject().getModules()));
dest.saveToFile(outputFile);
Bug Fix - Fixed the issue where textBox content was lost when converting Excel to PDF and OFD.

Spire.PDF for Java

Category ID Description
Bug Fix SPIREPDF-8190 Fixes the issue where an exception was thrown when using the product together with the Tess4J library.
Bug Fix SPIREPDF-8198 Fixes the issue where text fonts were displayed incorrectly after converting PDF to Word.

We are pleased to announce the release of Spire.OCR 2.3.6. This version upgrades the model to enhance recognition performance and also adds NET10 DLL compatibility with both GPU and CPU operating modes. Details are listed below.

Here is a list of changes made in this release

Category ID Description
Optimization - For Netstandard 2.0, Net10 platforms,upgraded the model to enhance recognition performance.
Optimization - Added NET10 DLL compatibility with both GPU and CPU operating modes. For newer discrete graphics cards (NVIDIA GTX 10 series and above, AMD RX 5000 and above, Intel Arc series), GPU acceleration is enabled by default. When the running platform does not support a GPU environment, the program automatically and smoothly falls back to CPU mode without any additional configuration.
Click the link to download Spire.OCR 2.3.6:

We’re pleased to announce the release of Spire.PDF for .NET 12.11.11. This update supports converting Markdown text — as strings or files — to PDF, and improves the document printing speed. Meanwhile, several known issues related to fonts and file format conversion have been successfully fixed.

Here is a list of changes made in this release

Category ID Description
New Feature SPIREPDF-7638 Added support for converting Markdown strings and files to PDF.
Improvement SPIREPDF-8194 Improved the document printing speed.
Bug Fix SPIREPDF-4604 Fixed the issue where fonts could not be embedded into the textbox field.
Bug Fix SPIREPDF-8166 Fixed the issue where images became blurry after converting PDF to Word.
Bug Fix SPIREPDF-8191 Fixed the issue where extra content was extracted when extracting text from a rectangular area.
Bug Fix SPIREPDF-8205 Fixed the issue where converting to PDF/A-3B greatly increased the file size and added an extra background.
Click the link to download Spire.PDF 12.11.11:
More information of Spire.PDF new release or hotfix:

We're pleased to announce the release of Spire.XLS 16.11.2. This version fixes issues related to incorrect pagination during Excel to PDF conversion and exceptions during Excel to HTML conversion. It also resolves an issue where formulas were displayed incorrectly when opening documents in Office 365 and WPS. More details are listed below.

Here is a list of changes made in this release

Category ID Description
Bug Fix SPIREXLS-6226 Fixed an issue with incorrect pagination when converting Excel to PDF.
Bug Fix SPIREXLS-6231 Fixed an issue where the program threw an exception when converting Excel to HTML.
Bug Fix SPIREXLS-6234 Fixed an issue with incorrect display after setting formulas when opening documents in Office 365 and WPS.
Click the link below to download Spire.XLS 16.11.2:
More information of Spire.XLS new release or hotfix:

E-iceblue has released Spire.Office.EdgeAI, a local AI extension for .NET developers. It brings AI-powered document translation and sensitive data redaction to Word, PDF, Excel, and PowerPoint files.

In addition to these core features, Spire.Office.EdgeAI provides document summarization, data cleaning, field extraction, compliance review, OCR-based data entry, and other AI-assisted document processing capabilities.

Run AI Models Locally Without Cloud AI APIs

Spire.Office.EdgeAI runs AI models locally in your application environment. Documents do not need to be uploaded to third-party AI services, and the extension does not rely on cloud AI APIs.

It runs on standard CPU environments and does not require a dedicated GPU. On the first run, the required model files are downloaded automatically. For offline environments, the model files can be deployed in advance.

This approach is particularly useful when working with documents containing contracts, financial information, customer records, or other sensitive business data.


Translate Documents into 20 Languages

Spire.Office.EdgeAI supports translation into 20 languages, including English, Simplified Chinese, Traditional Chinese, Japanese, Korean, French, German, Spanish, and Portuguese.
Translation is available across all four document formats:

  • Word: Translate an entire document while retaining its structure, including headings, paragraphs, tables, text boxes, headers, footers, and footnotes.
  • PDF: Translate the full document by replacing text on the original pages. The page count and orientation remain unchanged.
  • Excel: Translate an entire workbook or a selected cell range. Worksheet names can also be translated.
  • PowerPoint: Translate slide content and speaker notes throughout a presentation. The AutoFitText option helps fit translated text into text boxes.

Redact Sensitive Information in Four Document Formats

The extension also provides AI-assisted redaction for Word, PDF, Excel, and PowerPoint files.

  • Word: Redact sensitive information directly in the document. The operation is irreversible.
  • PDF: Apply irreversible redaction to the original document. In-place processing must be explicitly selected.
  • Excel: Combine predefined rules with AI-based detection to identify and redact sensitive data. Three processing modes are available: Copy, InPlace, and CopyDropSource.
  • PowerPoint: Redact sensitive information across the presentation, including speaker notes, while preserving the slide structure. A redaction report is also supported.

These capabilities help developers incorporate document redaction into local processing workflows.


More AI-Powered Document Processing Features

Beyond translation and redaction, Spire.Office.EdgeAI offers additional capabilities tailored to different document formats:

  • Word: Extract fields and perform compliance reviews.
  • PDF: Generate document summaries, extract fields, and perform compliance reviews.
  • Excel: Clean inconsistent data, extract fields, and use OCR to recognize information from worksheet images or standalone images and fill empty worksheets.
  • PowerPoint: Generate speaker notes for slides that do not already have them, expand or shorten selected text, and extract fields.

Integrate with .NET Applications

Spire.Office.EdgeAI is designed to work alongside Spire.Doc, Spire.PDF, Spire.XLS, and Spire.Presentation. Its extension-method API allows developers to add AI-powered processing to existing document workflows.

The library also provides asynchronous APIs, progress callbacks, logging, cancellation, and controls for concurrent processing.


Spire.Office.EdgeAI supports .NET 6.0 and later. It is free to use with both the free and commercial editions of Spire.Office for .NET.


Code Examples for Different Document Formats

The following examples demonstrate how to use Spire.Office.EdgeAI APIs to process different document formats, including translation, sensitive data redaction, field extraction, and other AI-powered operations.

Excel Examples

using Spire.Xls;
using Spire.Office.EdgeAI;
using Spire.Office.EdgeAI.Xls;

using var workbook = new Workbook();
workbook.LoadFromFile(input);
//Translate
AiResult result = await workbook.TranslateAsync(TranslateLanguage.SimplifiedChinese);

//Redact
AiResult result = await workbook.DesensitizeAsync(new DesensitizeOptions
{
    Target = DesensitizeTarget.InPlace,
    RulesOnly = true
});

//Clean
var result = await workbook.CleanAsync(new AiCleanOptions
{
    Mode = AiCleanMode.Deep,
    OutputPath = "sample_cleaned.xlsx"
});

//Extract
var spec = InspectionSpec.From(new[]
{
    { "key": "customer", "text": "Which customer companies are listed?", "multi": true },
    { "key": "contact",  "text": "Who are the contacts?", "multi": true },
    { "key": "phone",    "text": "What are the phone numbers?", "multi": true }
});

var result = await workbook.ExtractFieldsAsync(spec);

//OCR fill
var targets = new[]
{
    new XlsOcrTarget(new PageImage(@"sample.png", 0), block)
};
await target.OcrFillAsync(targets, new OcrFillOptions
{
    OverwriteExistingCells = false
});

workbook.SaveToFile(output, ExcelVersion.Version2016);

PDF Examples

using Spire.Pdf;
using Spire.Office.EdgeAI;
using Spire.Office.EdgeAI.Pdf;

using var pdf = new PdfDocument();
pdf.LoadFromFile(input);

//Translate
var result = await pdf.TranslateAsync(TranslateLanguage.SimplifiedChinese);

//Redact
var result = await pdf.DesensitizeAsync(new DesensitizeOptions
{
    Target = DesensitizeTarget.InPlace,
    RulesOnly = true
});
//Extract
var spec = InspectionSpec.From(new[]
{
    { "key": "party",  "text": "Who are the two parties of the contract?", "multi": true },
    { "key": "amount", "text": "What is the total contract amount?", "multi": false }
});

var result = await pdf.ExtractFieldsAsync(spec);
//Compliance review
var result = await pdf.ReviewComplianceAsync(new ComplianceOptions
{
    RulesPath = "compliance.rules.json",
    IncludeConforming = true
});
//Summary
var result = await pdf.SummarizeAsync();

pdf.SaveToFile(output, FileFormat.PDF);

Word Examples

using Spire.Doc;
using Spire.Office.EdgeAI;
using Spire.Office.EdgeAI.Doc;

using var document = new Document();
document.LoadFromFile(input);

//Translate
var result = await document.TranslateAsync(TranslateLanguage.SimplifiedChinese);
//Redact
var result = await document.DesensitizeAsync(new DesensitizeOptions
{
    Target = DesensitizeTarget.InPlace,
    RulesOnly = true
});
//Extract
var spec = InspectionSpec.From(new[]
{
    { "key": "party",  "text": "Who are the two parties of the contract?", "multi": true },
    { "key": "amount", "text": "What is the total contract amount?", "multi": false }
});

var result = await document.ExtractFieldsAsync(spec);
//Compliance review
var result = await document.ReviewComplianceAsync(new ComplianceOptions
{
    RulesPath = "compliance.rules.json",
    Annotate = new ComplianceAnnotationOptions
    {
        Author = "user01",
        Initials = "AI",
        IncludeUnevaluated = false,
        CommentUnlocated = true
    }
});

document.SaveToFile(output, FileFormat.Docx);

PowerPoint Examples

using Spire.Presentation;
using Spire.Office.EdgeAI;
using Spire.Office.EdgeAI.Presentation;

using var deck = new Presentation();
deck.LoadFromFile(input);

//Translate 
var result = await deck.TranslateAsync(TranslateLanguage.SimplifiedChinese,
    new PptTranslateOptions { AutoFitText = true });

//Extract
var spec = InspectionSpec.From(new[]
{
    { "key": "topic", "text": "What is the title of this presentation? Answer with the title only.", "multi": true },
    { "key": "phone", "text": "What is the contact phone number? Answer with the number only.", "multi": true }
});

var result = await deck.ExtractFieldsAsync(spec);
//Generate notes
var result = await deck.GenerateNotesAsync(new PptNotesOptions
{
    Apply = true,
    NoteTargetMinimum = 40,
    NoteTargetMaximum = 200
});
//Redact
var result = await deck.DesensitizeAsync(new PptDesensitizeOptions
{
    Apply = true,
    RulesOnly = true
});
//Expand
var body = (IAutoShape)deck.Slides[1].Shapes[1];

var result = await deck.ExpandAsync(new[] { body }, new PptRewriteOptions
{
    Strength = PptRewriteStrength.Standard
});
//Condense
var body = (IAutoShape)deck.Slides[1].Shapes[1];

var result = await deck.CondenseAsync(new[] { body }, new PptRewriteOptions
{
    Strength = PptRewriteStrength.Standard
});

deck.SaveToFile(output, FileFormat.Pptx2016);

Download and Resources

Visit E-iceblue for more information.


About E-iceblue

E-iceblue develops document processing components for .NET, Java, Python, and other development platforms. Its product portfolio covers PDF, Word, Excel, PowerPoint, email, and OCR solutions, helping developers integrate document creation, conversion, editing, and processing into their applications.

Contact us:

We're pleased to announce the release of Spire.Doc for Java 14.11.3. This version supports setting chart series styles and also fixes several issues encountered when converting Word to PDF as well as ODT to PDF. More details are listed below.

Here is a list of all changes made in this release

Category ID Description
New Feature SPIREDOC-11882 Added support for setting chart series styles, including line color, width, line style and fill effects.
Document document = new Document();
document.loadFromFile(inputFile);
Section section = document.getSections().get(0);
for (Paragraph paragraph : (Iterable<? extends Paragraph>) section.getParagraphs()) {
    for (int i = 0; i < paragraph.getChildObjects().getCount(); i++) {
        if (paragraph.getChildObjects().get(i) instanceof ShapeObject) {
            Chart chart = ((ShapeObject) paragraph.getChildObjects().get(i)).getChart();

            // 1. Line format: color, width, line style, dash style
            Stroke stroke = chart.getSeries().get(0).getDataPoints().getFormat().getStroke();
            stroke.getFill().setColor(Color.RED);
            stroke.setWeight(2);
            stroke.setLineStyle(ShapeLineStyle.Single);
            stroke.setDashStyle(DashStyle.Solid);

            // 2. Solid fill: fill type, color, transparency
            Fill fill = chart.getSeries().get(0).getDataPoints().getFormat().getFill();
            fill.setFillType(FillType.Solid);
            fill.setColor(Color.BLUE);
            fill.setTransparency(0.3);

            // 3. Gradient fill: gradient type, direction, angle, gradient stops
            Fill gradientFill = chart.getFormat().getFill();
            gradientFill.setFillType(FillType.Shade);
            gradientFill.setGradientType(GradientFillType.Linear);
            gradientFill.setGradientDirection(GradientFillDirection.Linear_Down);
            gradientFill.setGradientAngle(90);
            gradientFill.getGradientStops().add(new GradientStop(0, Color.WHITE, 1));
            gradientFill.getGradientStops().add(new GradientStop(1, Color.BLUE, 0.5));

            // 4. Pattern fill: pattern type, foreground color, background color
            Fill patternFill = chart.getLegend().getFormat().getFill();
            patternFill.setFillType(FillType.Pattern);
            patternFill.setPattern(PatternType.Percent_10);
            patternFill.setForegroundColor(Color.RED);
            patternFill.setBackgroundColor(Color.WHITE);

            // 5. Picture/texture fill: image source, transparency, stretch or tile
            Fill imageFill = chart.getAxisX().getFormat().getFill();
            imageFill.setFillType(FillType.Picture);
            imageFill.setImage(imagePath);
            imageFill.setImageTransparency(0.5);
            imageFill.stretchImage(0, 0, 100, 100);
        }
    }
}
document.saveToFile(outputFile, FileFormat.Docx);
document.close();
Bug Fix SPIREDOC-11615 Fixed the issue where the table of contents was updated incorrectly.
Bug Fix SPIREDOC-12111 Fixed the issue where footnote and body superscript numbers were positioned too low when converting Word to PDF.
Bug Fix SPIREDOC-12124
SPIREDOC-12125
Fixed the issue where converting Word to PDF threw "java.lang.StackOverflowError" exception.
Bug Fix SPIREDOC-12136 Fixed the issue where converting ODT to PDF threw "java.lang.NullPointerException" exception.
Click the link below to download Spire.Doc for Java 14.11.3:
Friday, 20 November 2026 10:36

Spire.Office 11.11.1 is released

 

We're pleased to announce the release of Spire.Office 11.11.1. This version adds several new features. For example, Spire.XLS adds support for TSV-to-PDF conversion; Spire.Presentation supports printing slides with notes; Spire.PDF adds support for PDF form fields and XFA forms; In addition, a series of issues that occurred when processing Word, Excel, PDF, and PowerPoint files have been successfully fixed. More details are given below.

In this version, the most recent versions of Spire.Doc, Spire.PDF, Spire.XLS, Spire.Presentation, Spire.Email, Spire.DocViewer, Spire.PDFViewer, Spire.Spreadsheet, Spire.OfficeViewer, Spire.DataExport, Spire.Barcode are included.

DLL Versions:

  • Spire.Barocde: 7.5.13
  • Spire.Doc: 14.11.5
  • Spire.DocViewer: 8.11.1
  • Spire.Email: 6.8.0
  • Spire.OfficeViewer: 9.1.1
  • Spire.PDF: 12.11.5
  • Spire.PDFViewer: 8.3.4
  • Spire.Presentation: 11.11.1
  • Spire.Spreadsheet: 7.5.3
  • Spire.XLS: 16.10.3
Click the link to get the version Spire.Office 11.11.1:
More information of Spire.Office new release or hotfix:

Here is a list of changes made in this release

Spire.Doc

Category ID Description
Bug Fix SPIREDOC-12051 Fixed the issue where the character count was retrieved incorrectly.
Bug Fix SPIREDOC-12082 Fixed the issue where header images were displayed incompletely when converting Word to PDF.
Bug Fix SPIREDOC-12094 Fixed the issue where tables were incorrectly positioned when converting Word to PDF.
Bug Fix SPIREDOC-12122 Fixed the issue where a "StackOverflowException" was thrown during Word to PDF conversion.

Spire.XLS

Category ID Description
New Feature SPIREXLS-6225 Added support for parsing .tsv files and converting them to PDF.
Workbook workbook = new Workbook();
            workbook.LoadFromFile(inputFile, "\t");
            workbook.SaveToFile(outputFile, FileFormat.PDF);
            workbook.Dispose(); 
Adjustment - Updated the .NET Core packaging and dependencies for .NET 6.0, .NET 9.0, and .NET 10.0 to improve cross-platform compatibility by following the .NET Standard specifications. Image processing has been migrated from System.Drawing to SkiaSharp. Other platforms remain unchanged.
Bug Fix SPIREXLS-6223 Fixed an issue with incorrect updated formula calculation values when converting Excel to PDF.
Bug Fix SPIREXLS-6224 Fixed an issue where string values in date columns were exported as empty when using ExportDataTable.

.NET Core Packaging and Image Processing Changes

The dependencies for .NET 6.0, .NET 9.0, and .NET 10.0 have been updated as follows.
The dependencies listed here are minimum versions.

Dependency .NET 6.0 .NET 9.0 .NET 10.0
SkiaSharp ≥ 3.116.1 ≥ 3.116.1 ≥ 3.116.1
Microsoft.Win32.Registry ≥ 5.0.0 ≥ 5.0.0 ≥ 5.0.0
System.Buffers ≥ 4.5.1 ≥ 4.5.1 ≥ 4.5.1
System.Memory ≥ 4.5.5 ≥ 4.5.5 ≥ 4.5.5
System.Text.Encoding.CodePages ≥ 6.0.0 ≥ 9.0.0 ≥ 10.0.0
HarfBuzzSharp ≥ 8.3.0.1 ≥ 8.3.0.1 ≥ 8.3.0.1

Image Export Code Migration

When exporting a worksheet to an image, the returned value is now a Stream. The image stream can be copied to a file instead of calling Save() directly on the result.

Spire.Presentation

Category ID Description
New Feature SPIREPPT-3124 Adds support for printing slides with notes.
Presentation ppt = new Presentation();
ppt.LoadFromFile(inputFile);
PresentationPrintDocument document = new PresentationPrintDocument(ppt);
document.PrintSlidesWithNotes = true;
document.PrinterSettings.PrintToFile = true;
document.PrinterSettings.PrintFileName = outputFile;
ppt.Print(document);
Adjustment - Adjusts .NET Core packaging and dependencies for .NET 6.0, .NET 9.0, and .NET 10.0 by achieving cross-platform compatibility through .NET Standard specifications and migrating image processing from System.Drawing to SkiaSharp.
Bug Fix SPIREPPT-2675 Fixes the issue where loading a PPTX document with comments threw the "Comment by nonexistent author" error.
Bug Fix SPIREPPT-3177 Fixes the issue where color blocks were not displayed when converting PPT to PDF.
Bug Fix SPIREPPT-3199 Fixes the issue where saving a PPTX document as PPSX threw the "Object reference not set to an instance of an object" error.
Bug Fix SPIREPPT-3207 Fixes the issue where loading a certain PPTX document threw the "Object reference not set to an instance of an object" error.
Bug Fix SPIREPPT-3210 Fixed an issue where shape colors were incorrect when converting PowerPoint documents to PDF.
Bug Fix SPIREPPT-3214 Fixed an issue where content was lost when converting PowerPoint documents to PDF.
Bug Fix SPIREPPT-3215 Fixed an issue where an extra border appeared when converting shapes to SVG.
Bug Fix SPIREPPT-3216 Fixed an issue where custom properties of PowerPoint documents were retrieved incorrectly.

.NET Core Packaging and Image Processing Changes

The dependencies for .NET 6.0, .NET 9.0, and .NET 10.0 have been updated as follows.
The dependencies listed here are minimum versions.

Dependency .NET 6.0 .NET 9.0 .NET 10.0
SkiaSharp ≥ 3.116.1 ≥ 3.116.1 ≥ 3.116.1
Microsoft.Win32.Registry ≥ 5.0.0 ≥ 5.0.0 ≥ 5.0.0
System.Buffers ≥ 4.5.1 ≥ 4.5.1 ≥ 4.5.1
System.Memory ≥ 4.5.5 ≥ 4.5.5 ≥ 4.5.5
System.Text.Encoding.CodePages ≥ 6.0.0 ≥ 9.0.0 ≥ 10.0.0
HarfBuzzSharp ≥ 8.3.0.1 ≥ 8.3.0.1 ≥ 8.3.0.1

Spire.PDF

Category ID Description
New Feature - Added the Spire.Pdf.Interactive.Forms namespace to support creating, reading, modifying, and flattening AcroForm fields.
New Feature - Added support for accessing and processing XFA forms through the Spire.Pdf.Interactive.Forms.Xfa namespace.
New Feature - Added support for importing and exporting PDF form data in XML, FDF, and XFDF formats through PdfForm.
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(); }
Optimization - Deprecated the `AppendPage` interface for merging PDFs; use the following new methods instead:
MergeOptions option= new MergeOptions();
PdfMerger.Merge(new string[] { file1, file2, file2, file2 }, output, option);
Optimization - The namespace Spire.Pdf.Multiimedia._3DArtwork has been renamed to Spire.Pdf.Multiimedia.Artwork3D.
Optimization - The type of the XfaNumericField.Value property has been changed from decimal to double.
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.
Bug Fix SPIREPDF-4317 Fixed the issue where the digital certificate was obtained as null.
Bug Fix SPIREPDF-5703 Fixed the issue where form fields and styles on later pages were lost after merging multiple PDF documents.
Bug Fix SPIREPDF-7237 Fixed the issue where underlines were offset from the text when converting PDF to Word.
Bug Fix SPIREPDF-7400 Fixed the issue where, when filling XFA form fields, only the first field could be filled and the remaining fields stayed empty.
Bug Fix SPIREPDF-7947 Fixed the issue where verification of the first signature failed when a PDF document contained multiple signatures.
Bug Fix SPIREPDF-8181 Fixed the issue where an "NullReferenceException" error was thrown when loading a PDF document.
Bug Fix SPIREPDF-6282 Fixed an issue where some XFA form fields failed to be filled.
Bug Fix SPIREPDF-6661 Fixed an issue where fonts changed when converting PDF to Word.
Bug Fix SPIREPDF-6708 Fixed an issue where some content was lost when printing PDF files.
Bug Fix SPIREPDF-6867 Fixed an issue where the generated file could not be opened after converting PDF to Word.

1. Added the Spire.Pdf.Interactive.Forms namespace

The new Spire.Pdf.Interactive.Forms namespace provides a unified and comprehensive API for creating, reading, modifying, and flattening PDF form fields. It covers the common AcroForm field types, with the following key properties and methods.

Supported AcroForm Field Types

Field Type Property / Method Description
Text field PdfTextField IsMultiline Whether multi-line input is allowed
IsPassword Displayed as a mask (password field)
MaxLen Maximum number of characters allowed
IsComb Uses character comb cells
DoNotSpellCheck Disables spell checking
Text The text content of the field
Font Field font
Check box PdfCheckBoxField IsChecked Whether it is currently checked
OnValue Export value for the checked state
Style Visual style (Check/Circle/Cross/Diamond/Square/Star)
Radio button PdfRadioButtonField Options Collection of export values for the options
SelectedIndex Index of the currently selected option
SelectedValue Export value of the currently selected option
NoToggleToOff Whether deselecting is disabled once selected
AddOption() Adds a new radio option to the page
Combo box PdfComboBoxField Items Collection of drop-down options
IsMultiSelect Whether multiple selection is allowed
SelectedIndex Index of the currently selected option
SelectedValue Export value of the currently selected option
CascadeTo() Establishes a JavaScript cascade with another combo box
List box PdfListBoxField Items Collection of list options
IsMultiSelect Whether multiple selection is allowed
TopIndex Index of the first visible list option
SelectedIndices Collection of indices of the selected options
SelectedValues Collection of export values of the selected options
Push button PdfPushButtonField Text / RolloverText / DownText Button text for the normal / rollover / down states
Icon / RolloverIcon / DownIcon Display icons for the corresponding three states
Layout Layout of the icon and text
Action Action executed when the button is clicked
Signature field PdfSignatureField Signature Digital signature object associated with the field

In addition to the field-specific members listed above, all fields inherit common properties from PdfField, including:

  • IsReadOnly: Specifies whether the field is read-only.
  • IsRequired: Specifies whether the field is required.
  • AlternateName: Gets or sets the alternate name of the field.
  • MappingName: Gets or sets the mapping name of the field.
  • DefaultAppearance: Gets or sets the default appearance of the field.

All fields can also call Flatten() to flatten the form field into static page content.


2. Extended Support for XFA Forms

This version also introduces access to XFA forms through the Spire.Pdf.Interactive.Forms.Xfa sub-namespace. Developers can retrieve XFA form field names and objects, inspect field values, and work with a variety of XFA field types.

Supported AcroForm Field Types

Field Type Property / Method Description
XFA form XfaForm FieldNames List of field names in the form template
XfaFields List of field objects in the form template
Count Number of form fields
GetField(name) Gets an XFA field by name
CheckFieldExists(name) Checks whether the specified field exists
Text XfaTextField Value Text value of the field
Numeric XfaNumericField Format Numeric format string
Value Field value (decimal)
Check box XfaCheckBoxField IsChecked Whether it is currently checked
Radio button XfaRadioButtonField Options List of export values for the options
SelectedIndex Index of the currently selected option
SelectedValue Export value of the currently selected option
NoToggleOff Whether deselecting is disabled once selected
Choice list XfaChoiceField Items List of available items (display values)
IsMultiSelect Whether multiple selection is supported
SelectedItem Currently selected single item
SelectedItems List of currently selected items
Date/time XfaDateTimeField Value Date/time value of the field
Image XfaImageField Image Image of the field (Stream / Image)
Barcode XfaBarcodeField Value Barcode value
Length Barcode length
StartChar Barcode start character
EndChar Barcode end character

All XFA fields inherit common properties from XfaField, including:

  • Name: The field name.
  • XfaForm: The containing XFA form.
  • FieldType: The field type identifier.

The XfaSignatureField (signature) and XfaPushButtonField (push button) classes do not define additional public properties and are accessed primarily through their inherited common members.


3. Added Form Data Import and Export

PdfForm now supports importing and exporting form data in XML, FDF, and XFDF formats. This functionality facilitates form data exchange between PDF documents, business systems, and third-party PDF tools.

Code example:

using System.Drawing;
  using System.Collections.Generic;
  using Spire.Pdf;
  using Spire.Pdf.Graphics;
  using Spire.Pdf.Interactive.Forms;

  PdfDocument doc = new PdfDocument();
  PdfPageBase page = doc.Pages.Add();

  // Get the form container via PdfForm.Create() under the new namespace
  PdfForm form = PdfForm.Create(doc);

  // Create a text field and add it to the page
  PdfTextField nameField = new PdfTextField(form, "Address.Street");
  nameField.DefaultAppearance = new PdfDefaultAppearance(
      new PdfFont(PdfFontFamily.Helvetica, 12), new PdfRGBColor(0, 0, 0));
  nameField.AddWidget(page, new RectangleF(100, 100, 250, 30));
  nameField.Value = "123 Main St";

  // Retrieve fields by name and by prefix
  PdfField field = form.GetField("Address.Street");
  List<PdfField> addressFields = form.Fields.FindByPrefix("Address");

  // Flatten to static content and save
  form.Flatten();
  doc.SaveToFile("output.pdf");

  Form data can also be exchanged directly in formats such as XFDF:
  // Export form data as XFDF and import it back from the file
  form.ExportData("form.xfdf", DataFormat.XFDF, "PurchaseOrder");
  form.ImportData("form.xfdf", DataFormat.XFDF);

Spire.PDFViewer

Category ID Description
Adjustment - For Spire.PdfViewer.Forms.dll in the NET6.0 folder, the dependency on System.Drawing.Common >= 6.0.0 has been replaced with SkiaSharp >= 3.116.1.

We're pleased to announce the release of Spire.XLS for Java 16.11.1. This version adds support for adding, retrieving, setting, and copying VBA macros. It also fixes an issue where TextBox content was lost during Excel to PDF and OFD conversion. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New Feature - Supports adding VBA macros.
Workbook workbook = new Workbook();
Workbook workbook = new Workbook();
//Add a VBA project to the document
IVbaProject vbaProject = workbook.getVbaProject();
vbaProject.setName("SampleVBAMacro");
vbaProject.setCodePage(936); //Set the encoding to support Chinese

//Add a module to the VBA project
IVbaModule vbaModule = vbaProject.getModules().add("frmDataEntry", VbaModuleType.UserForm);

workbook.saveToFile(outputFile, FileFormat.Xlsm);
workbook.dispose();
New Feature - Supports getting and setting VBA macros.
Workbook wb = new Workbook();
wb.loadFromFile(inputFile);
Worksheet ws = wb.getWorksheets().get(0);

IVbaProject vbaProject = wb.getVbaProject();
// Project properties
vbaProject.setPassword("1234");
vbaProject.setName("modify");
vbaProject.setDescription("Description");
vbaProject.setHelpFileName("image1.png");
vbaProject.setConditionalCompilation("DEBUG = 2");
vbaProject.setLockProjectView(true);
String text = "Password: " + vbaProject.getPassword() + "\n";//The set password can be retrieved
TestUtil.writeAllText(outputFile_TXT, text);
// Sheet properties
IVbaModule mod = vbaProject.getModules().getWorksheetModule(ws);
mod.setName("IVbaModule");
mod.setSourceCode("Dim lRow As Long");
mod.setType(VbaModuleType.Module);

wb.saveToFile(outputFile);
wb.dispose();
New Feature - Supports copying VBA macros.
Workbook wb1 = new Workbook();
wb1.loadFromFile(inputFile_1);
IVbaProject vbaProject1 = wb1.getVbaProject();

Workbook wb2 = new Workbook();
wb2.loadFromFile(inputFile_2);
IVbaProject vbaProject2 = wb2.getVbaProject();

Workbook wb3 = new Workbook();
wb3.loadFromFile(inputFile_3);
IVbaProject vbaProject3 = wb3.getVbaProject();

Workbook wb4 = new Workbook();
wb4.loadFromFile(inputFile_4);
IVbaProject vbaProject4 = wb4.getVbaProject();

Workbook dest = new Workbook();
dest.getVbaProject().getModules().add(vbaProject1.getModules().get("SampleModule").clone(dest.getVbaProject().getModules()));
dest.getVbaProject().getModules().add(vbaProject2.getModules().get("Employee").clone(dest.getVbaProject().getModules()));
dest.getVbaProject().getModules().add(vbaProject2.getModules().get(1).clone(dest.getVbaProject().getModules()));
dest.getVbaProject().getModules().add(vbaProject3.getModules().get(0).clone(dest.getVbaProject().getModules()));
dest.getVbaProject().getModules().add(vbaProject4.getModules().get(0).clone(dest.getVbaProject().getModules()));
dest.saveToFile(outputFile);
Bug Fix - Fixed the issue where textBox content was lost when converting Excel to PDF and OFD.
Click the link below to download Spire.XLS for Java 16.11.1:

We're pleased to announce the release of Spire.DocViewer 8.11.1. This version adapts to the latest Spire.Doc for .NET and adjusts the dependencies of the .NET 6 version. More details are listed below.

Here is a list of changes made in this release

Category ID Description
Adjustment - Adapted to the latest Spire.Doc for .NET. The .NET 6 version (Spire.DocViewer.Forms.dll) no longer depends on System.Drawing.Common and now uses SkiaSharp.

Dependency changes in the .NET 6 version (`Spire.DocViewer.Forms.dll`)

Dependency Version
Microsoft.Win32.Registry 5.0.0 or later
SkiaSharp 3.116.1 or later
System.Text.Encoding.CodePages 6.0.0 or later
HarfBuzzSharp 8.3.0.1 or later
Page 1 of 32