Spire.PDF for C++ 11.8.1 enhances multi-product use compatibility
We are delighted to announce the release of Spire.PDF for C++ 11.8.1. This version fixes compatibility issues when using multiple products together in specific scenarios. More details are listed below.
Here is a list of changes made in this release
| Bug | SPIREPDF-7643 | Fixes compatibility issues when using multiple products together in specific scenarios. |
Spire.XLS for C++ 15.8.1 fixes a compatibility issue
We're pleased to announce the release of Spire.XLS for C++ 15.8.1. This release fixes the compatibility issues that occurred when using multiple products simultaneously in specific scenarios. Details are shown below.
Here is a list of changes made in this release
| Bug | SPIREPDF-7643 | Fixed compatibility issues that occurred when using multiple products simultaneously in specific scenarios. |
Spire.Presentation for C++ 10.8.2 fixes the issue of compatibility problems
We are delighted to announce the release of Spire.Presentation for C++ 10.8.2. The latest version fixes the issue of compatibility problems occurring when multiple products are used simultaneously in specific scenarios. More details are listed below.
Here is a list of changes made in this release
| Bug | SPIREPDF-7643 | Fixes the issue of compatibility problems occurring when multiple products are used simultaneously in specific scenarios. |
Spire.Doc for C++ fixes a compatibility issue
We’re pleased to announce the release of Spire.Doc for C++ 13.8.2. This update fixes the compatibility issue that occurred when using multiple Spire products simultaneously in specific scenarios.
Here is a list of changes made in this release
| Bug | SPIREPDF-7643 | Fixes the issue where compatibility problems occurred when using multiple Spire products simultaneously in specific scenarios. |
Spire.Presentation for Java 10.8.0 enhances the conversion from PPTX to PDF
We’re glad to announce the release of Spire.Presentation for Java 10.8.0. This version optimizes the memory usage and processing time when converting PPTX to PDF, while also fixing several known issues. More details are provided below.
Here is a list of changes made in this release
| Optimization | SPIREPPT-2896 | Optimized memory usage and processing time when converting PPTX to PDF. |
| Bug | SPIREPPT-2877 | Fixed the issue where adding a LaTeX formula resulted in incorrect rendering. |
| Bug | SPIREPPT-2890 | Fixed the issue where adding a blank paragraph caused incorrect shape height. |
| Bug | SPIREPPT-2907 | Fixed the issue where converting ODP to PDF caused the program to throw a "StackOverflowError". |
| Bug | SPIREPPT-2910 | Fixed the issue where text was lost when converting PPTX to images. |
| Bug | SPIREPPT-2920 SPIREPPT-2923 | Fixed the issue where chart data was incorrect when converting slides to images. |
| Bug | SPIREPPT-2931 | Fixed the issue where adding the formula "\to" caused the program to throw a "NullPointerException". |
Spire.Doc 13.8.1 supports comparing whether two list levels are consistent
We're pleased to announce the release of Spire.Doc 13.8.1. This version supports comparing whether two list levels are consistent and setting or deleting the picture bullet. Besides, it has also made some adjustments to the properties and methods related to the lists in Word. More details are listed below.
Here is a list of changes made in this release
| New Feature | - | Added 'ListLevel.Equals' to compare whether two ListLevels are consistent.
// Create a new Document object. Document document = new Document(); //Create list style 1 ListStyle listStyle_1 = document.Styles.Add(ListType.Bulleted, "bulletList"); ListLevelCollection Levels_1 = listStyle_1.ListRef.Levels; ListLevel L0 = Levels_1[0]; ListLevel L1 = Levels_1[1]; ListLevel L2 = Levels_1[2]; ListStyle listStyle_2 = document.Styles.Add(ListType.Bulleted, "bulletList"); ListLevelCollection Levels_2 = listStyle_2.ListRef.Levels; ListLevel l0 = Levels_2[0]; ListLevel l1 = Levels_2[1]; ListLevel l2 = Levels_2[2]; //Create list style 1 L0.ParagraphFormat.LineSpacing = 10 * 1.5f; L1.CharacterFormat.FontSize = 9; L1.IsLegalStyleNumbering = true; L1.PatternType = ListPatternType.Arabic; L1.FollowCharacter = FollowCharacterType.Nothing; L1.BulletCharacter = "\x006e"; L1.NumberAlignment = ListNumberAlignment.Left; L1.NumberPosition = -10; L1.TabSpaceAfter = 0.5f; L1.TextPosition = 0.5f; L1.StartAt = 4; L1.NumberSufix = "Chapter"; L1.NumberPrefix = "No."; L1.NoRestartByHigher = false; L1.UsePrevLevelPattern = false; L2.CharacterFormat.FontName = "Arial"; // Create list style 2 l0.ParagraphFormat.LineSpacing = 10 * 1.5f; l1.CharacterFormat.FontSize = 9; l1.IsLegalStyleNumbering = true; l1.PatternType = ListPatternType.Arabic; l1.FollowCharacter = FollowCharacterType.Nothing; l1.BulletCharacter = "\x006e"; l1.NumberAlignment = ListNumberAlignment.Left; l1.NumberPosition = -10; l1.TabSpaceAfter = 0.5f; l1.TextPosition = 0.5f; l1.StartAt = 4; l1.NumberSufix = "Chapter"; l1.NumberPrefix = "No."; l1.NoRestartByHigher = false; l1.UsePrevLevelPattern = false; l1.CreatePictureBullet(); l2.CharacterFormat.FontName = "Arial"; //Add 'ListLevel.Equals' to compare whether two ListLevels are consistent. bool r0 = L0.Equals(l0); bool r1 = L1.Equals(l1); bool r2 = L2.Equals(l2); |
| New Feature | - | Supported setting or deleting the picture bullet.
// Create a new Document object.
Document document = new Document();
//Add a section
Section sec = document.AddSection();
Spire.Doc.Documents.Paragraph paragraph = sec.AddParagraph();
//Create list style
ListStyle listStyle = document.Styles.Add(ListType.Bulleted, "bulletList");
ListLevelCollection Levels = listStyle.ListRef.Levels;
Levels[0].CreatePictureBullet();
Levels[0].PictureBullet.LoadImage(@"logo.jpg");
Levels[1].CreatePictureBullet();
Levels[1].PictureBullet.LoadImage(@"py.jpg");
//Add paragraph and apply the list style
paragraph = sec.AddParagraph();
paragraph.AppendText("List Item 1");
paragraph.ListFormat.ApplyStyle(listStyle);
paragraph = sec.AddParagraph();
paragraph.AppendText("List Item 1.1");
paragraph.ListFormat.ApplyStyle(listStyle);
paragraph.ListFormat.ListLevelNumber = 1;
//DeletePictureBullet
Levels[0].DeletePictureBullet();
//Save doc file.
document.SaveToFile(@"out.docx", FileFormat.Docx);
document.Close();
|
| Optimization | - | Deprecated the “Document.ListStyles” and replaced it with “Document.ListReferences”. Added new methods in “Document.ListReferences” to create ListDefinitionReference classes.
// Create a new Document object.
Document document = new Document();
//Add a section
Section sec = document.AddSection();
Spire.Doc.Documents.Paragraph paragraph = sec.AddParagraph();
//Create listTemplate1
ListTemplate template = ListTemplate.BulletDefault;
ListDefinitionReference listRef = document.ListReferences.Add(template);
//Create listTemplate2
ListTemplate template1 = ListTemplate.NumberDefault;
ListDefinitionReference listRef1 = document.ListReferences.Add(template1);
listRef1.Levels[2].StartAt = 4;
int levelcount = listRef.Levels.Count;
//Add paragraph and apply the list style
paragraph = sec.AddParagraph();
paragraph.AppendText("List Item 1");
paragraph.ListFormat.ApplyListRef(listRef, 1);
paragraph = sec.AddParagraph();
paragraph.AppendText("List Item 2");
paragraph.ListFormat.ApplyListRef(listRef, 2);
//Add paragraph and apply the list style
paragraph = sec.AddParagraph();
paragraph.AppendText("List Item 3");
paragraph.ListFormat.ApplyListRef(listRef1, 1);
paragraph = sec.AddParagraph();
paragraph.AppendText("List Item 4");
paragraph.ListFormat.ApplyListRef(listRef1, 2);
//Save doc file.
document.SaveToFile("out.docx", FileFormat.Docx);
document.Close();
|
| Optimization | - | The public constructor for “ListStyle” has been removed. “ListStyle” objects are now managed within the “Document.Styles” collection and should be created using the “StyleCollection.Add(ListType listType, string name)” method.
ListStyle listStyle = document.Styles.Add(ListType.Numbered, "levelstyle"); listStyle.IsCustomStyle = true; listStyle.CharacterFormat.FontName = "Trebuchet MS"; ListLevelCollection levels = listStyle.ListRef.Levels; levels[0].PatternType = ListPatternType.Arabic; levels[0].StartAt = 1; levels[0].CharacterFormat.FontName = "Trebuchet MS"; |
| Optimization | - | Changed to apply the list style using "ListFormat.AppleStyle" or "ListFormat.AppleListRef(ListDefinitionReference list, int leverNode)" method. |
| Optimization | - | Changed the property “ListFormat.CurrentListStyle” to “ListFormat.CurrentListRef”. |
| Optimization | - | Removed “ListFormat.IsRistNumbering” and “ListFormat.CustomStyleName”. |
| Optimization | - | Changed to set the List “starting number” using the following method.
ListStyle numberList2 = document.Styles.Add(ListType.Numbered, "Numbered2"); ListLevelCollection Levels = numberList2.ListRef.Levels; Levels[0].StartAt = 10; |
Spire.Cloud 10.7.10 supports the "document protect" function for Excel documents
We are excited to announce the release of Spire.Cloud 10.7.10. The latest version supports the "document protect" function for Excel documents. More details are listed below.
Here is a list of changes made in this release
| Category | ID | Description |
| New feature | - | Support the "document protect" function for Excel documents. |

Spire.Office 10.7.0 is released
We are excited to announce the release of Spire.Office 10.7.0. In this version, Spire.Doc supports multiple new features, such as loading EPUB files for processing and creating combination charts; Spire.PDF supports extracting custom PDF data values and enhances the PDF-to-Excel conversion; Spire.XLS and Spire.Presentation support loading Markdown-format documents. Besides, a lot of known issues are fixed successfully in this version. More details are listed 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.Doc.dll v13.7.14
- Spire.Pdf.dll v11.7.14
- Spire.XLS.dll v15.7.8
- Spire.Presentation.dll v10.7.7
- Spire.Barcode.dll v7.3.7
- Spire.Email.dll v6.6.3
- Spire.DocViewer.Forms.dll v8.9.1
- Spire.PdfViewer.Asp.dll v8.1.3
- Spire.PdfViewer.Forms.dll v8.1.3
- Spire.Spreadsheet.dll v7.5.2
- Spire.OfficeViewer.Forms.dll v8.8.0
- Spire.DataExport.dll 4.9.0
- Spire.DataExport.ResourceMgr.dll v2.1.0
Here is a list of changes made in this release
Spire.Doc
| Category | ID | Description |
| New feature | SPIREDOC-3144 | Supports loading EPUB files for processing.
Document doc = new Document();
doc.LoadFromFile("in.epub", Spire.Doc.FileFormat.EPub);
doc.SaveToFile(@"out.docx", Spire.Doc.FileFormat.Docx);
doc.SaveToFile(@"out.pdf", Spire.Doc.FileFormat.PDF);
|
| New feature | SPIREDOC-11179 | Supports converting Word to PDF/UA-1 format.
Document doc = new Document();
doc.LoadFromFile("in.docx");
ToPdfParameterList list = new ToPdfParameterList();
list.PdfConformanceLevel = PdfConformanceLevel.Pdf_UA1;
doc.SaveToFile(@"out.pdf", list);
|
| New feature | SPIREDOC-11345 | Adds new configuration parameters to enhance the performance and output quality of Word-to-Markdown conversion. |
| New feature | SPIREDOC-9977 SPIREDOC-10012 | Supports creating combination charts.
Document doc = new Document();
Paragraph paragraph = doc.AddSection().AddParagraph();
Chart chart = paragraph.AppendChart(ChartType.Column, 450, 300).Chart;
//Modify 'Series 3' to a line chart and display it on the secondary axis
chart.ChangeSeriesType("Series 3", ChartSeriesType.Line, true);
Console.WriteLine(chart.Series[2].ChartType);
doc.SaveToFile("ComboChart.docx");
|
| New feature | - | Adds the ‘setDefaultSubstitutionFontName()’ method to specify default substitution fonts.
Document document = new Document();
//Set default replacement font
doc.DefaultSubstitutionFontName = "Arial";
Section sec = doc.AddSection();
Paragraph para = sec.AddParagraph();
TextRange tr = para.AppendText("test");
//The system does not have this font
tr.CharacterFormat.FontName = "Helvetica";
doc.SaveToFile(outputFile, FileFormat.PDF);
doc.Close();
|
| New feature | - | Adds the ‘StructureDocumentTag.RemoveSelfOnly()’ method to remove SDT tags while retaining their contents.
// Process inline structure tags
List tagInlines = structureTags.getM_tagInlines();
for (int i = 0; i < tagInlines.Count; i++)
{
tagInlines[i].RemoveSelfOnly();
}
// Process other structure tags
List tags = structureTags.getM_tags();
for (int i = 0; i < tags.Count; i++)
{
tags[i].RemoveSelfOnly();
}
// Process StructureDocumentTagRow
List rowtags = structureTags.getM_rowtags();
for (int i = 0; i < rowtags.Count; i++)
{
rowtags[i].RemoveSelfOnly();
}
// Process StructureDocumentTagCell
List celltags = structureTags.getM_celltags();
for (int i = 0; i < celltags.Count; i++)
{
celltags[i].RemoveSelfOnly();
}
|
| New feature | - | Supports setting image compression methods when converting Word to PDF.
Document document = new Document(); document.LoadFromFile(@"Sample.docx"); ToPdfParameterList para = new ToPdfParameterList(); para.PdfImageCompression = Spire.Doc.Export.PdfImageCompression.Jpeg; document.SaveToFile(outputFile,para); |
| New feature | - | Supports inserting formulas into Word documents using OMML code.
Document document = new Document();
Section section = doc.AddSection();
foreach (string ommlCode in OmmlCodes)
{
OfficeMath officeMath = new OfficeMath(doc);
officeMath.CharacterFormat.FontSize = 14f;
officeMath.FromOMMLCode(ommlCode);
section.AddParagraph().ChildObjects.Add(officeMath);
}
doc.SaveToFile(outputFile, FileFormat.Docx2013);
doc.Dispose();
|
| New feature | - | Supports converting math formulas to LaTeX code.
Document document = new Document();
doc.LoadFromFile(inputFile);
StringBuilder stringBuilder = new StringBuilder();
// Iterate through sections in the document
foreach (Section section in doc.Sections)
{
// Iterate through paragraphs in each section
foreach (Paragraph par in section.Body.Paragraphs)
{
// Iterate through child objects in each paragraph
foreach (DocumentObject obj in par.ChildObjects)
{
// Check if the object is an OfficeMath equation
OfficeMath omath = obj as OfficeMath;
if (omath == null) continue;
// Convert OfficeMath equation to LaTex code
string mathml = omath.ToLaTexMathCode();
// Append MathML code to the StringBuilder
stringBuilder.Append("LaTeX code" + mathml);
stringBuilder.Append("\r\n");
}
}
}
// Write the LaTex code to a text file
File.WriteAllText(outputFile, stringBuilder.ToString())
|
| Bug | SPIREDOC-11245 | Fixed an issue where header images were distorted When converting Doc to PDF. |
Spire.PDF
| Category | ID | Description |
| New feature | SPIREPDF-7505 | Adds GetCustomApplicationData() to support extracting custom PDF data values.
PdfDocument doc = new PdfDocument(inputFile); PdfApplicationData appplicationDataObject = doc.GetCustomApplicationData(); Dictionary privateDataObject = appplicationDataObject.Private as Dictionary; string privateData = privateDataObject["WinsertPrivateCatalogData"] as string; |
| New feature | SPIREPDF-7430 SPIREPDF-7427 | Supports integrating PaddleOCRSharp in XlsxLineLayoutOptions.TextRecognizer to enhance the PDF-to-Excel conversion.
PdfDocument doc = new PdfDocument();
doc.LoadFromFile("in.pdf");
XlsxLineLayoutOptions options = new XlsxLineLayoutOptions(false, false, false, true);
options.TextRecognizer = new TextRecognizer();
doc.ConvertOptions.SetPdfToXlsxOptions(options);
doc.SaveToFile("out.xlsx", Spire.Pdf.FileFormat.XLSX);
// niget install PaddleOCRSharp lib
using PaddleOCRSharp;
using Spire.Pdf.Conversion;
public class TextRecognizer : ITextRecognizer
{
private static readonly PaddleOCREngine _engine;
static TextRecognizer()
{ _engine = new PaddleOCREngine(null, “”); }
public string RecognizeGlyph(Stream glyphImageStream)
{
var image = new System.Drawing.Bitmap(glyphImageStream);
// paint glyph in image center
var fixImage = new System.Drawing.Bitmap(160, 240);
using (Graphics g = Graphics.FromImage(fixImage))
{ g.DrawImage(image, new RectangleF(20, 20, fixImage.Width - 40, fixImage.Height - 40), new RectangleF(0, 0, image.Width, image.Height), GraphicsUnit.Pixel); }
var unicodeResult = _engine.DetectText(fixImage).Text;
return unicodeResult;
}
}
|
| Bug | SPIREPDF-5089 | Optimizes the time consumption of converting PDF to images. |
| Bug | SPIREPDF-6354 | Fixes the issue where Thai text displayed incorrectly when converting PDF to PDF/A-1A. |
| Bug | SPIREPDF-6689 | Fixes the incorrect transparency effect when highlighting PDF text. |
| Bug | SPIREPDF-7359 | Fixes incorrect rendering when drawing images to PDF pages. |
| Bug | SPIREPDF-7459 | Fixes the incorrect Flatten effect for PDF form fields. |
| Bug | SPIREPDF-7486 | Fixes the "ArgumentException" thrown during PDF compression. |
| Bug | SPIREPDF-7495 SPIREPDF-7561 | Fixes the "NullReferenceException" thrown when converting PDF to TIFF. |
| Bug | SPIREPDF-7529 | Fixes shadow issues in printed PDF content. |
| Bug | SPIREPDF-7570 | Fixes Adobe errors when converting OFD to PDF. |
| Bug | SPIREPDF-7571 | Fixes the "InvalidOperationException" thrown when defining fonts. |
| Bug | SPIREPDF-7579 | Fixes the "NullReferenceException" thrown when converting PDF to images. |
| Bug | SPIREPDF-7581 | Fixes the "System.Exception" thrown when canceling print operations in netstandard DLL. |
| Bug | SPIREPDF-7589 | Fixes the "Value cannot be null" error when merging PDF files. |
| Bug | SPIREPDF-6991 | Fixed the issue where Arabic text did not display correctly when converting an EMF file to PDF. |
| Bug | SPIREPDF-2800 | Fixes the issue that the content was incorrect when converting XPS to PDF. |
| Bug | SPIREPDF-3727 SPIREPDF-3984 SPIREPDF-5085 | Optimizes performance for PDF-to-image conversion to reduce processing time. |
| Bug | SPIREPDF-3818 | Improves PDF printing performance. |
| Bug | SPIREPDF-7004 | Fixes the issue where content was missing during PDF-to-image conversion. |
| Bug | SPIREPDF-7043 | Fixes the issue that the content was incorrect when converting PDF to PDF/A. |
| Bug | SPIREPDF-7399 | Fixes the issue where PDF content could not be extracted. |
| Bug | SPIREPDF-7574 SPIREPDF-7575 SPIREPDF-7576 SPIREPDF-7577 SPIREPDF-7578 | Fixes the issue that the content was incorrect when converting OFD to PDF or images. |
| Bug | SPIREPDF-7598 | Fixes the issue that duplicate "Indirect reference" entries were caused by Attachments.Add(). |
| Bug | SPIREPDF-7609 | Fixes the issue where the program threw System.NullReferenceException error when releasing pdfTextFinder objects. |
Spire.XLS
| Category | ID | Description |
| New feature | — | Adds the LoadFromMarkdown() method to support for loading Markdown-format documents.
Workbook wb = new Workbook();
wb.LoadFromMarkdown("test.md");
wb.SaveToFile("out.pdf", FileFormat.PDF);
wb.SaveToFile("out.xlsx", ExcelVersion.Version2010);
|
| Bug | SPIREXLS-5820 | Fixes the issue where checkboxes were displayed incorrectly after converting Excel to PDF. |
| Bug | SPIREXLS-5833 | Fixes the issue where the AGGREGATE formula was calculated incorrectly. |
| Bug | SPIREXLS-5858 | Fixes the issue where content overlapped after converting Excel to PDF. |
| Bug | SPIREXLS-5860 | Fixes the issue where text wrapping was incorrect after converting Excel to PDF. |
| Bug | SPIREXLS-5832 | Fixed the issue where saving an Excel file to PDF/A3B was incorrect. |
| Bug | SPIREXLS-5862 | Fixes the issue where the Ungroup effect was incorrect. |
| Bug | SPIREXLS-5863 | Fixes the issue where page breaks were inconsistent after converting Excel to PDF. |
| Bug | SPIREXLS-5868 | Fixes the issue where formula calculation returned "#VALUE!". |
Spire.Prensentation
| Category | ID | Description |
| New feature | — | Supports loading Markdown files.
Presentation pt = new Presentation(); pt.LoadFromFile(inputFilePath, FileFormat.Markdown); pt.SaveToFile(outputFile, FileFormat.Pptx2013); |
| Bug | SPIREPPT-2849 | Fixes the issue that files were corrupted when opening presentations containing copied slides. |
Spire.Doc for Java 13.7.6 supports the "Two Lines in One" function
We’re pleased to announce the release of Spire.Doc for Java 13.7.6. The latest version supports the "Two Lines in One" function, which enhances the conversion from Word to PDF. Furthermore, some known bugs are fixed successfully in the new version, such as the issue where accepting revisions did not affect the content in content controls. More details are listed below.
Here is a list of changes made in this release
| New feature | SPIREDOC-11113 SPIREDOC-11320 SPIREDOC-11338 | Supports the "Two Lines in One" function. |
| Bug | SPIREDOC-11276 | Fixes the issue where accepting revisions did not affect the content in content controls. |
| Bug | SPIREDOC-11314 | Fixes the issue where converting Word to PDF caused a "NullPointerException" to be thrown. |
| Bug | SPIREDOC-11325 | Fixes the issue where retrieving Word document properties was incorrect. |
| Bug | SPIREDOC-11333 | Fixes the issue where converting Word to Markdown resulted in disorganized bullet points. |
| Bug | SPIREDOC-11360 | Fixes the issue where converting Word to PDF caused vertically oriented text in tables to be incorrect. |
| Bug | SPIREDOC-11364 | Fixes the issue where replacing bookmark content caused an "IllegalArgumentException" to be thrown. |
| Bug | SPIREDOC-11389 | Fixes the issue where loading a Word document caused an "IllegalArgumentException: List level must be less than 8 and greater than 0" to be thrown. |
| Bug | SPIREDOC-11390 | Fixes the issue where accepting revisions did not produce the correct effect. |
| Bug | SPIREDOC-11398 | Fixes the issue where using "pictureWatermark.setPicture(bufferedImage)" caused a "java.lang.NullPointerException" to be thrown. |
Spire.OCR for Java 2.1.1 adds support for Linux-ARM platform
We’re excited to announce the release of Spire.OCR for Java 2.1.1. This version introduces support for Linux-ARM platform and enables text output that matches the original image layout. In addition, this update includes several bug fixes. More details are provided below.
| Category | ID | Description |
| New feature | - | Added support for Linux-ARM platform. |
| New feature | SPIREOCR-84 | Added support for automatically rotating images when necessary.
ConfigureOptions configureOptions = new ConfigureOptions(); configureOptions.setAutoRotate(true); |
| New feature | SPIREOCR-107 | Added support for preserving the original image layout in text output.
VisualTextAligner visualTextAligner = new VisualTextAligner(scanner.getText()); String scannedText = visualTextAligner.toString(); |
| Bug | SPIREOCR-103 | Fixed the issue where the cleanup of the temporary folder "temp" was not functioning correctly. |
| Bug | SPIREOCR-104 | Fixed the issue where an "Error occurred during ConfigureDependencies" message appeared when the path contained Chinese characters. |
| Bug | SPIREOCR-108 | Fixed the issue where the content extraction order was incorrect. |