We're pleased to announce the release of Spire.Doc 14.4.9. This version adds several new properties to CompareOptions to support multi-dimensional document comparison. Additionally, the CompareOptions.IgnoreTable property has been renamed to CompareOptions.IgnoreTables for better naming consistency. More details are listed below.

Here is a list of changes made in this release

Category ID Description
Adjustment - Renamed CompareOptions.IgnoreTable to CompareOptions.IgnoreTables for naming consistency.
New Feature SPIREDOC-11910 Adds several new properties to CompareOptions to support multi-dimensional document comparison:
· CompareMoves: Specifies whether to ignore moved content.
· IgnoreCaseChanges: Specifies whether to ignore case changes.
· IgnoreFields: Specifies whether to ignore fields.
· IgnoreFootnotes: Specifies whether to ignore footnotes.
· IgnoreComments: Specifies whether to ignore comments.
· IgnoreTextboxes: Specifies whether to ignore text boxes.
 Document doc1 = new Document();
            doc1.LoadFromFile(inputFile_1);
            Document doc2 = new Document();
            doc2.LoadFromFile(inputFile_2);

            CompareOptions options = new CompareOptions();
            options.CompareMoves = false;
            options.IgnoreCaseChanges = false;
            options.IgnoreComments = true;
            options.IgnoreFields = true;
            options.IgnoreFootnotes = true;
            options.IgnoreTables = true;
            options.IgnoreTextboxes = true;
            doc1.Compare(doc2, "user", new DateTime(), options);

            doc1.SaveToFile(outputFile, FileFormat.Docx2013);
Click the link to download Spire.Doc 14.4.9:
More information of Spire.Doc new release or hotfix:

We’re pleased to announce the release of Spire.OCR for Python 2.1.0. This version enables seamless integration of cloud-based AI models—including Doubao, Qwen, and DeepSeek—into Spire.OCR for Python. These models help improve accuracy and enhance text recognition in images.

Here is a list of changes made in this release

Category ID Description
New Feature - Added support for integration of AI models into Spire.OCR. (Note: Users need to obtain an API Key from the AI platform on their own.)
def _run_ai_test(self):
    filename = "1.png"
    output_file = "scan.txt"
    file_path = r"F:\3.3.0AI\AI\ocr.xml"
    model = "AIModel"
    api_key = "ApiKey"
    api_url = "ApiUrl"
    self._update_ocr_config(file_path, model, api_key, api_url)
    self._scan_img(filename, output_file)


def _scan_img(self, filename, output_file):
    scanner = OcrScanner()
    configure_options = ConfigureOptions()
    configure_options.ModelPath = r"F:\3.3.0AI\AI"
    configure_options.Language = "Japanese"
    scanner.ConfigureDependencies(configure_options)
    scanner.Scan(filename)

    text = scanner.Text.ToString()
    with open(output_file, "w", encoding="utf-8") as f:
        f.write(text)


def _update_ocr_config(self, file_path, model, api_key, api_url):
    tree = ET.parse(file_path)
    root = tree.getroot()

    model_node = root.find('./configs/model')
    api_key_node = root.find('./configs/apiKey')
    api_url_node = root.find('./configs/apiUrl')

    if model_node is not None:
        model_node.text = model
    if api_key_node is not None:
        api_key_node.text = api_key
    if api_url_node is not None:
        api_url_node.text = api_url

    tree.write(file_path, encoding='utf-8', xml_declaration=True)
    print("XML updated successfully!")
Click the link to download Spire.OCR for Python 2.1.0:

We’re pleased to announce the release of Spire.Presentation 11.4.5. This version adds support for saving PPTX files to video formats (.mp4/.wmv), along with several bug fixes, including issues related to data label formatting in PDF conversion and shape clipping during PPTX-to-PDF conversion. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New Feature SPIREPPT-3096 Added support for saving PPTX files to video formats (.mp4/.wmv).

Note: This feature requires specifying the path to ffmpeg.

Presentation ppt = new Presentation();
            ppt.LoadFromFile(inputFile);
            SaveToVideoOption saveOption = new SaveToVideoOption(ffmpegDir);
            ppt.SaveToVideoOption=saveOption;//Default: 5 seconds per slide.
            ppt.SaveToFile(outputFile_mp4, FileFormat.MP4);
            ppt.SaveToFile(outputFile_wmv, FileFormat.WMV);
            ppt.Dispose();
Bug Fix SPIREPPT-3092 Fixed an issue where data label formatting was incorrect when converting PowerPoint files to PDF.
Bug Fix SPIREPPT-3094 Fixed an issue where an InvalidOperationException was thrown when converting shapes to SVG.
Bug Fix SPIREPPT-3097 Fixed an issue where exported files had excessively large sizes when splitting PowerPoint presentations.
Bug Fix SPIREPPT-3098 Fixed an issue where shapes were clipped during PowerPoint to PDF conversion.
Bug Fix SPIREPPT-3099 Fixed an issue where some images were missing when converting slides to images.
Bug Fix SPIREPPT-3102 Fixed an issue where extra incorrect images appeared during PowerPoint to PDF conversion.
Click the link below to download Spire.Presentation 11.4.5:

We are pleased to announce the release of Spire.OCR for Java 2.1.5. This version mainly fixes a license recognition issue. Details are listed below.

Here is a list of changes made in this release

Category ID Description
Bug Fix SPIREOCR-120 Fixed an issue where license recognition failed when the provided license path started with a "\" character.
Click the link to download Spire.OCR for Java 2.1.5:

We're pleased to announce the release of Spire.PDF for Java 12.4.4. This version optimizes memory consumption when merging PDF documents and also fixes several issues that occurred when processing PDF files. More details are listed below.

Here is a list of changes made in this release

Category ID Description
Optimization SPIREPDF-7657 Optimized memory consumption when merging PDF documents.
Bug Fix SPIREPDF-7843 Fixed an issue where replacing text incorrectly caused other text to be lost.
Bug Fix SPIREPDF-8008 Fixed an issue where content became misaligned after text replacement.
Bug Fix SPIREPDF-8019 Fixed an issue where converting PDF to OFD without a license threw a "Specified argument was out of the range of valid values." exception.
Click the link below to download Spire.PDF for Java 12.4.4:

We're pleased to announce the release of Spire.Doc 14.4.4. This version supports saving charts as templates and allows configuring the Producer metadata when converting to PDF via the GeneratorName property. Additionally, it supports retrieving X and Y axis data values and managing chart data label positions. Meanwhile, some issues that occurred when converting Markdown to PDF/Docx and merging Word documents have also been successfully fixed. More details are listed below.

Here is a list of changes made in this release

Category ID Description
Adjustment - Renamed ToPdfParameterList.IsAtlast to ToPdfParameterList.IsAtLeast.
ToPdfParameterList.IsAtlast-->ToPdfParameterList.IsAtLeast
New Feature SPIREDOC-10293 Supports saving charts as templates.
Document doc = new Document();
doc.LoadFromFile(inputFile);
int count = 1;
foreach (Section sec in doc.Sections)
{
    foreach (Spire.Doc.Documents.Paragraph paragraph in sec.Paragraphs)
    {
        foreach (DocumentObject obj in paragraph.ChildObjects)
        {
            if (obj is ShapeObject shape)
            {
                Chart chart = shape.Chart;
                if (chart == null)
                    continue;

                string fileName = Path.Combine(outputPath, $"{count}.crtx");
                chart.SaveAsTemplate(fileName);
                count++;
            }
        }
    }
}
New Feature SPIREDOC-11457 Adds the GeneratorName property to allow configuring the Producer metadata when converting to PDF.
string genName = "Testing For Set Producer";
 Document doc = new Document();
 doc.LoadFromFile(filename);
 ToPdfParameterList toPdf = new ToPdfParameterList();
 toPdf.GeneratorName = genName;
 doc.SaveToFile("result.pdf", toPdf);
New Feature SPIREDOC-10828 Adds XValues and YValues properties to retrieve data values for specified series in charts.
Document doc = new Document();
doc.LoadFromFile(inputFile);
StringBuilder sb = new StringBuilder();
int number = 1;

foreach (Section sec in doc.Sections)
{
    foreach (Paragraph paragraph in sec.Paragraphs)
    {
        for (int i = 0; i < paragraph.ChildObjects.Count; i++)
        {
            DocumentObject obj = paragraph.ChildObjects[i];
            if (obj is ShapeObject)
            {
                ShapeObject shape = obj as ShapeObject;
                Chart chart = shape.Chart;
                sb.Append("\r\n\r\nPage " + number + ":\r\n" + "Get all X-axis data: ");
                for (int x = 0; x < chart.XValues.Count; x++)
                {
                    ChartValue xVal = chart.XValues[x];
                    // Get all X-axis data values
                    sb.Append(xVal.StringValue + " "); 
                }
                // Get the first series
                ChartSeries series = chart.Series[0]; 
                sb.Append("\r\nGet Y-axis data: ");
                foreach (ChartValue yVal in series.YValues)
                {
                    // Get all Y-axis data values of the first series
                    sb.Append(yVal.Value + " ");  
                }
            }
        }
    }
    number++;
}
New Feature SPIREDOC-11457 Supports reading and setting chart data label positions.
Document doc = new Document();
foreach (ChartDataLabelPosition position in Enum.GetValues(typeof(ChartDataLabelPosition)))
{
    Section section = doc.AddSection();
    section.AddParagraph().AppendText(position.ToString());
    Spire.Doc.Documents.Paragraph newPara = section.AddParagraph();
    ShapeObject shape = newPara.AppendChart(ChartType.Pie, 500, 300);
    Chart chart = shape.Chart;
    chart.Series[0].HasDataLabels = true;
    chart.Series[0].DataLabels.ShowCategoryName = true;
    chart.Series[0].DataLabels.ShowValue = true;
    // Set position
    chart.Series[0].DataLabels.Position = position;

    ShapeObject shape2 = newPara.AppendChart(ChartType.Bubble, 500, 300);
    Chart chart2 = shape2.Chart;
    chart2.Series[0].HasDataLabels = true;
    chart2.Series[0].DataLabels.ShowCategoryName = true;
    chart2.Series[0].DataLabels.ShowValue = true;
    chart2.Series[0].DataLabels.Position = position;
}
doc.SaveToFile(outputFile, FileFormat.Docx);
doc.Dispose();
Bug Fix SPIREDOC-11586 Fixes the issue where tables were converted incorrectly when converting Markdown to Docx or PDF.
Bug Fix SPIREDOC-11854 Fixes the issue where merged cells in tables were split incorrectly.
Bug Fix SPIREDOC-11871 Fixes the issue where a System.InvalidCastException was thrown when merging Word documents.
Bug Fix SPIREDOC-11874 Fixes the issue where a System.NullReferenceException was thrown when loading HTML.
Click the link to download Spire.Doc 14.4.4:
More information of Spire.Doc new release or hotfix:

We are excited to announce the release of Spire.Office for JavaScript 11.4.1. In this version, Spire.Doc for JavaScript adds support for Word to Markdown conversion and more features; Spire.XLS for JavaScript supports converting Excel to SVG; Spire.Presentation for JavaScript supports converting PowerPoint to PDF/A. More details are listed below.

Click the link to download Spire.Office for JavaScript 11.4.1:

Here is a list of changes made in this release

Spire.Doc for JavaScript

Category ID Description
New Feature Supports converting Word documents to Markdown format.
New Feature Supports inserting SVG files into Word documents.
New Feature Supports setting gutter width.

Spire.XLS for Java

Category ID Description
New Feature SPIREXLS-5621 Supports converting Excel to SVG.
New Feature SPIREXLS-5622 Supports converting ChartSheet to SVG.
New Feature SPIREXLS-5623 Supports configuring OnlyCopyFormulaValue when cloning cell ranges to copy formula values only.

Spire.Presentation for Java

Category ID Description
New Feature - Added support for converting PowerPoint to PDF/A compliant documents.
New Feature - Added support for adding HTML with images to PowerPoint documents.

We’re pleased to announce the release of Spire.Doc for Python 14.4.2. This version brings several valuable new features, such as converting Word to Excel, and converting MHTML to PDF. Moreover, it fixes the issue where adding a digital signature failed when converting Word to PDF. More details are as follows.

Here is a list of changes made in this release

Category ID Description
New Feature SPIREDOC-10770 Added support for converting MHTML to PDF.
document = Document()
document.LoadFromFile(“input.mhtml”)
document.SaveToFile(“output.pdf”, FileFormat.PDF)
document.Close()
New Feature SPIREDOC-11793 Added support for exporting Word mathematical formulas as standard MathML to ensure correct rendering in HTML.
HtmlExportOptions options = doc.HtmlExportOptions;
 options.OfficeMathOutputMode = HtmlOfficeMathOutputMode.MathML; 
New Feature SPIREDOC-11872 Added support for converting Word to Excel.
document = Document()
document.LoadFromFile(“input.docx”)
document.SaveToFile(“output.xlsx”, FileFormat.XLSX)
document.Close()
Bug Fix SPIREDOC-11701 Fixed an issue where the program threw an exception when adding a series to a chart.
Bug Fix SPIREDOC-11832 Fixed an issue where adding a digital signature failed when converting Word to PDF.
Click the link below to download Spire.Doc for Python 14.4.2:

We're pleased to announce the release of Spire.PDF 12.4.5. This version enhances the conversions from PDF to PDF/A and images. Meanwhile, several issues that occurred when printing and merging PDFs have also been successfully fixed. More details are listed below.

Here is a list of changes made in this release

Category ID Description
Bug Fix SPIREPDF-7164 Fixed the issue where the page content was distorted when copying a page via CreateTemplate().
Bug Fix SPIREPDF-7803 Fixed the issue where concurrent HTML to PDF conversions occasionally failed to generate documents.
Bug Fix SPIREPDF-7948 Fixed the issue where printing a PDF produced extra, unintended content.
Bug Fix SPIREPDF-7984 Fixed the issue where text box fields with the same name could not be associated.
Bug Fix SPIREPDF-7998 Fixed the issue where content went missing when converting PDF to images.
Bug Fix SPIREPDF-8003 Fixed the issue where the program threw an ArgumentOutOfRangeException when merging PDFs.
Bug Fix SPIREPDF-8004 Fixed the issue where the program threw an ArgumentOutOfRangeException when merging PDF documents without applying a license.
Bug Fix SPIREPDF-8010 Fixed the issue where the description in document properties was incorrect when converting PDF to PDF/A.
Bug Fix SPIREPDF-8014 Fixed the issue where the position and size information of videos in PDF files could not be retrieved.
Click the link to download Spire.PDF 12.4.5:
More information of Spire.PDF new release or hotfix:

We're pleased to announce the release of Spire.OCR 2.2.10. This version supports integration with cloud AI models (such as Doubao, Qwen, DeepSeek, etc.) for image text recognition. (Note: Users are required to obtain their own API Keys from the respective AI platforms.) More details are listed below.

Here is a list of changes made in this release

Category ID Description
New Feature SPIREOCR-125 Supports integration with cloud AI models (such as Doubao, Qwen, DeepSeek, etc.) for image text recognition.
static void Main(string[] args)
 {
     string filename = "1.png";
     string outputFile = "scan.txt";

     string filePath = "F:\\3.3.0AI\\AI\\"+"ocr.xml";
     string newModel = "AIModel";
     string newApiKey = "ApiKey";
     string newApiUrl = "ApiUrl";
     UpdateOcrConfig(filePath, newModel, newApiKey, newApiUrl);

     ScanImg(filename, outputFile);
 }
 public static void ScanImg(string filename, string outputFile)
 {
     OcrScanner scanner = new OcrScanner();
     ConfigureOptions configureOptions = new ConfigureOptions();
     configureOptions.ModelPath = "F:\\3.3.0AI\\AI";
     configureOptions.Language = "English";
     scanner.ConfigureDependencies(configureOptions);
     scanner.Scan(filename);
     File.WriteAllText(outputFile, scanner.Text.ToString());
 }
 public static void UpdateOcrConfig(string filePath, string model, string apiKey, string apiUrl)
 {
     XmlDocument doc = new XmlDocument();
     doc.Load(filePath);

     XmlNode modelNode = doc.SelectSingleNode("/ocr/configs/model");
     XmlNode apiKeyNode = doc.SelectSingleNode("/ocr/configs/apiKey");
     XmlNode apiUrlNode = doc.SelectSingleNode("/ocr/configs/apiUrl");

     if (modelNode != null) modelNode.InnerText = model;
     if (apiKeyNode != null) apiKeyNode.InnerText = apiKey;
     if (apiUrlNode != null) apiUrlNode.InnerText = apiUrl;

     doc.Save(filePath);
     Console.WriteLine("XML file updated!");
 }
Click the link to download Spire.OCR 2.2.10:
More information of Spire.OCR new release or hotfix:
Page 3 of 20