We're pleased to announce the release of Spire.PDF for Android via Java 10.8.7. This version adds support for signing with certificates that use algorithms such as SHA-256 and SHA-512, as well as tracking conversion progress through progress callbacks. It also adjusts the namespace of OfdConverter. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New Feature - Added support for signing with certificates that use algorithms such as SHA-256/SHA-512.
PdfDocument doc = new PdfDocument();
        //Load file from disk
        doc.loadFromFile(inputFile);
        // Load the X509 certificate for signature.
        PdfPKCS7Formatter formatter = new PdfPKCS7Formatter(new PdfCertificate(inputFile_pfx, "e-iceblue"), false);

        // Create an instance of PdfOrdinarySignatureMaker using the loaded document and certificate.
        PdfOrdinarySignatureMaker signatureMaker = new PdfOrdinarySignatureMaker(doc, formatter);

        // Create an instance of PdfCustomSignatureAppearance as the appearance for the signature.
        IPdfSignatureAppearance signatureAppearance = new PdfCustomSignatureAppearance();

        // Make the signature with a specified name and the custom appearance.
        signatureMaker.makeSignature("Signature", signatureAppearance);
        for (HashAlgorithmType hashAlg : HashAlgorithmType.values()) { 
            if ("SM3".equalsIgnoreCase(hashAlg.name())) 
			{
                continue;
            }
                // Set the current hash algorithm
formatter.getProperties().setHashAlgorithm(hashAlg);
                String filePath = outputFile + "AddImageSignature_" + hashAlg.name() + ".pdf";
                doc.saveToFile(filePath, FileFormat.PDF);
        }
        doc.close();
    }
    public static class PdfCustomSignatureAppearance implements IPdfSignatureAppearance {
        public void generate(PdfCanvas pdfCanvas) {
            int fontSize = 10;
            PdfTrueTypeFont font = new PdfTrueTypeFont("Arial", 0,10, true);
            float lineHeight = fontSize;
            pdfCanvas.drawString("AAAAAAAAAAA", font, PdfBrushes.getRed(), 0, 0);
            pdfCanvas.drawImage(PdfImage.fromFile(ExStoragePath + "data/E-logo.png"), 20, 0);
        }
    }
New Feature - Added support for obtaining conversion progress via progress callback when converting PDF to Word, OFD to PDF, etc.
// Register a progress notifier when saving a PDF document
        PdfDocument pdf = new PdfDocument();
        pdf.loadFromFile(inputFile);
        pdf.registerProgressNotifier(new CustomProgressNotifier(outputFile_T));
        pdf.saveToFile(outputFile, FileFormat.XPS);
        pdf.dispose();

        // Register a progress notifier when converting PDF to Word
        PdfToWordConverter converter = new PdfToWordConverter(inputFile);
        converter.registerProgressNotifier(new CustomProgressNotifier(outputFile_T));
        converter.saveToDocx(outputFile);

        // Register a progress notifier when converting OFD to PDF
        OfdConverter ofdConverter = new OfdConverter(inputFile);
        ofdConverter.registerProgressNotifier(new CustomProgressNotifier(outputFile_T));
        ofdConverter.toPdf(outputFile);

        // Custom progress notifier, receives the progress in percent
        public class CustomProgressNotifier implements IProgressNotifier {
            private String outputFile;
            private StringBuilder str = new StringBuilder();

            public CustomProgressNotifier(String outputFile) {
                this.outputFile = outputFile;
            }

            @Override
            public void notify(float progress) {
                str.append("Progress: ").append(progress).append("%\n");
                try {
                    Files.writeString(Paths.get(outputFile), str.toString());
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }
Adjustment - The namespace of OfdConverter has been adjusted from com.spire.pdf.conversion to com.spire.additions.Ofd.
Click the link below to download Spire.PDF for Android via Java 10.8.7:

We're pleased to announce the release of Spire.Doc 14.10.9. This update supports setting the "Gap Width" option of the charts and the "Allow Overlap" option of Word tables. Most importantly, it introduces substantial breaking API changes. Developers should review the full API differences before upgrading and update their code where necessary.

Major API Changes

The following are only a few representative examples of the API changes in this release. There are many more changes beyond those listed here.

  • ChildObjects has been moved from DocumentObject to CompositeDocumentObject.
  • The return value of OwnerTextBody has been changed from Body to IBody, requiring an explicit cast.
  • The Id of Permission has been changed from string to int.
For detailed API differences compared with version 14.9.11, click the link below:

Here is a list of changes made in this release

Category ID Description
New Feature SPIREDOC-12110 Added support for setting the "Gap Width" option of the charts.
Document doc = new Document();
Paragraph p = doc.AddSection().AddParagraph();
Chart chart = p.AppendChart(ChartType.Column, 400, 300).Chart;
chart.Series.GapWidth = 100;
doc.SaveToFile("xxx.docx"); 
New Feature SPIREDOC-4261 Added support for setting the "Allow Overlap" option of Word tables.
Document doc = new Document();
doc.LoadFromFile(inputFile);
Section section = doc.Sections[0];
Spire.Doc.Table table = section.Tables[0] as Spire.Doc.Table;
table.Format.AllowOverlap=true;
doc.SaveToFile(outputFile_docx, FileFormat.Docx);
doc.Close();
Bug Fix SPIREDOC-12115 Fixed the issue where the header was lost when converting Word to PDF.
Click the link to download Spire.Doc 14.10.9:
More information of Spire.Doc new release or hotfix:

We're pleased to announce the release of Spire.Presentation 11.10.4. This version supports printing slides with notes and adjusts .NET Core package dependencies (migrating image processing for .NET 6.0/9.0/10.0 to SkiaSharp). Meanwhile, some issues that occurred when loading PPTX documents, converting PPT to PDF, and saving PPTX as PPSX have also been successfully fixed. More details are listed below.

Here is a list of changes made in this release

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.

.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
Click the link below to download Spire.Presentation 11.10.4:

Spire.OCR 2.3.1 focuses on improvements for the .NET Standard platform. This release adds support for PaddleOCR 6.0.0 models, which no longer require spire_ocrsystem.dll and are available in three sizes: Tiny, Small, and Medium. The new models also support cross-platform deployment without requiring separate model configurations for different operating systems.

Summary of Updates

Category Description
New Feature Added support for PaddleOCR 6.0.0 ONNX models in Tiny, Small, and Medium sizes. Download links are provided below.
Cross-Platform Support Enabled the new models to run across supported platforms without operating-system-specific model variants.
Dependency Updates Adjusted the dependency requirements for .NET Standard projects, including updates to SkiaSharp, HarfBuzzSharp, and other packages.

New Feature

Support for PaddleOCR 6.0.0 Models

Spire.OCR 2.3.1 supports PaddleOCR 6.0.0 ONNX models. Unlike the previous model configuration, the new models do not depend on spire_ocrsystem.dll.

Three model sizes are available to accommodate different deployment requirements:

  • Tiny: For lightweight deployments.
  • Small: For general-purpose use.
  • Medium: For deployments that require a larger model.

The models support cross-platform use without requiring operating-system-specific model variants.

Model downloads:

Code Example

The following example configures the OCR scanner to use the Small model, sets English as the recognition language, extracts text from an image, and saves the result to a text file.

using System.IO;
using Spire.OCR;

OcrScanner scanner = new OcrScanner();

// Configure the scanner.
ConfigureOptions configureOptions = new ConfigureOptions();

// Set the path to the PaddleOCR 6.0.0 model.
configureOptions.ModelPath = @"Models\6.0.0\small";

// Set the recognition language.
configureOptions.Language = "English";

// Apply the configuration.
scanner.ConfigureDependencies(configureOptions);

// Recognize text in the image.
scanner.Scan("in.png");

// Save the recognized text to a file.
string text = scanner.Text.ToString();
File.WriteAllText("Output.txt", text);

Dependency Updates for .NET Standard

This release adjusts the dependencies required for .NET Standard projects. The following package versions are specified as minimum requirements:

Package Minimum Version
SkiaSharp 3.116.1
System.Buffers 4.6.1
System.Memory 4.6.3
Microsoft.Win32.Registry 4.5.0
System.Text.Encoding.CodePages 4.7.0
System.Security.Permissions 4.7.0
System.Runtime.CompilerServices.Unsafe 6.1.2
System.Runtime.CompilerServices.Unsafe 6.1.2
System.Runtime.InteropServices 4.3.0
HarfBuzzSharp 8.3.0.1
Microsoft.Bcl.Numerics 10.0.11
System.Numerics.Vectors 4.6.1
System.Threading.Tasks.Extensions 4.6.3
PolySharp 1.15.0
Click the link below to download Spire.OCR 2.3.1:
More information of Spire.OCR new release or hotfix:

We are pleased to announce the release of Spire.Presentation for Java 11.10.4. This version introduces support for converting PowerPoint (PPT & PPTX) documents to the Markdown file format. In addition, an issue related to PPTX-to-PDF conversion, which caused inconsistent content layouts, has been resolved. More details are as follows.

Here is a list of changes made in this release

Category ID Description
New Feature SPIREPPT-2914 Added support for converting PPT(X) to Markdown file format.
Presentation presentaion = new Presentation();
presentaion.loadFromFile(inputFile);
presentaion.saveToFile(outputFile, FileFormat.Markdown);
presentaion.dispose();
Bug Fix SPIREPPT-3200 Fixed the issue where the layout of content was inconsistent after converting PPT(X) to PDF.
Click the link below to download Spire.Presentation for Java 11.10.4:

We’re pleased to announce the release of Spire.PDF 12.10.7. This version introduces a new namespace for comprehensive PDF form processing, providing APIs for creating, reading, modifying, and flattening form fields. It also extends support to XFA forms and enables form data import and export in XML, FDF, and XFDF formats. These enhancements provide developers with more flexible and efficient ways to work with interactive PDF forms.

Here is a list of changes made in this release

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.

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);

Click the link below to download Spire.PDF 12.10.7:
More information of Spire.PDF new release or hotfix:

We're pleased to announce the release of Spire.Doc for Java 14.10.6. This version mainly fixes several issues encountered when converting Word to PDF, replacing long text, and accepting revisions. More details are listed below.

Here is a list of changes made in this release

Category ID Description
Bug Fix SPIREDOC-10471 Fixed the issue where the converted PDF content did not match the original Word document.
Bug Fix SPIREDOC-11959 SPIREDOC-12092 Fixed the issue where page numbers were displayed incorrectly after updating the Word table of contents field.
Bug Fix SPIREDOC-12025 Fixed the issue where the document content was incorrect after accepting revisions.
Bug Fix SPIREDOC-12055 Fixed the issue where extra blank pages were generated when converting Word to PDF.
Bug Fix SPIREDOC-12064 Fixed the issue where caption numbers were not automatically updated after inserting a caption.
Bug Fix SPIREDOC-12108 Fixed the issue where memory was not released in a timely manner during Word to PDF conversion.
Bug Fix SPIREDOC-12109 Fixed the issue where comments were still retained after clearing them, causing the operation to fail.
Bug Fix SPIREDOC-12114 Fixed the issue where an OutOfMemoryError was thrown when replacing long text.
Click the link below to download Spire.Doc for Java 14.10.6:

We’re pleased to announce the release of Spire.XLS 16.10.3. This version adds support for converting TSV files to PDF and fixes issues related to formula calculation during Excel-to-PDF conversion and data export. It also updates the .NET Core packaging and image-processing dependencies for .NET 6.0, .NET 9.0, and .NET 10.0. More details are listed below.

Here is a list of changes made in this release

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.

Click the link below to download Spire.XLS version:

We're pleased to announce the release of Spire.XLS for Java 16.10.1. This version enhances Excel to PDF conversion and fixes an issue where the conversion program hung and failed. More details are listed below.

Here is a list of changes made in this release

Category ID Description
Bug Fix SPIREXLS-6211 Fixed an issue where the Excel to PDF conversion program always hung and the conversion failed.
Click the link below to download Spire.XLS for Java 16.10.1:

We're pleased to announce the release of Spire.PDF 12.10.6. This version enhances the conversion from PDF to Word and adjusts the method for merging PDF files. More details are listed below.

Here is a list of changes made in this release

Category ID Description
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);
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.
Click the link to download Spire.PDF 12.10.6:
More information of Spire.PDF new release or hotfix:
Page 3 of 32