Spire.XLS for Python 14.9.3 supports determining whether to retain the original page size when converting Excel to PDF

2024-11-25 09:10:55

We are excited to announce the release of Spire.XLS for Python 14.9.3. This version supports determining whether to retain the original page size when converting Excel to PDF. It also enhances the conversion from chart sheets to images. Moreover, some known issues are fixed successfully in this version, such as the issue that an exception was thrown when setting font styles on ubuntu22. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature SPIREXLS-5181 Supports determining whether to retain the original page size when converting Excel to PDF.
book = Workbook()        
book.LoadFromFile(inputFile)        
# Retain the page size set
book.ConverterSetting.SheetFitToPageRetainPaperSize = True     
book.SaveToFile(outputFile, FileFormat.PDF)
New feature SPIREXLS-5319 Adds the workbook.Chartsheets property.
New feature SPIREXLS-5301 Adds the excelPicture.HyperLink property.
Bug SPIREXLS-5235 Fixes the issue that hyperlinks were lost after converting Excel to PDF.
Bug SPIREXLS-5236 Fixes the issue that the page numbers were incorrect after converting Excel to PDF.
Bug SPIREXLS-5266 Fixes the issue that Chinese characters were garbled when converting Excel to PDF on cloud platform (pythonwhere).
Bug SPIREXLS-5267 Fixes the issue that an exception was thrown when using openpyxl to load the XLSX file generated by our product.
Bug SPIREXLS-5303 Fixes the issue that an exception was thrown when multiple protection types were set simultaneously in the sheet.Protect method.
Bug SPIREXLS-5349 Fixes the issue that the content was inconsistent after converting ChartSheet to SVG.
Bug SPIREXLS-5475 Fixes the issue that an exception was thrown when setting font styles on ubuntu22.
Bug SPIREXLS-5552 Fixes the issue that an exception was thrown when converting Excel to PDF.
Click the link to download Spire.XLS for Python 14.9.3: