Spire.Office 6.4.2

Spire.Office 6.4.2 is released

We are excited to announce the release of Spire.Office 6.4.2. This version brings some new features, for instance, Spire.PDF supports deleting images according to location as well as setting export values of a Check Box Field. In addition, a lot of bugs have been fixed. 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 v9.4.12
  • Spire.Pdf.dll v7.4.5
  • Spire.XLS.dll v11.4.2
  • Spire.Email.dll v4.1.2
  • Spire.DocViewer.Forms.dll v6.1.0
  • Spire.PdfViewer.Forms.dll v6.3.2
  • Spire.PdfViewer.Asp.dll v6.3.2
  • Spire.Presentation.dll v6.4.1
  • Spire.Spreadsheet v5.4.0
  • Spire.OfficeViewer.Forms.dll v6.4.2
  • Spire.Barcode.dll v5.4.0
  • Spire.DataExport.dll v4.1.9
  • Spire.DataExport.ResourceMgr.dll v2.1.0
  • Spire.License.dll v1.3.8
Click the link to get the version Spire.Office 6.4.2:
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 SPIREDOC-2849 Fixes that the position of the inserted picture caption was incorrect.
Bug SPIREDOC-4269
SPIREDOC-5404
SPIREDOC-5485
Fixes the issue that the content was incorrect after converting Word to PDF.
Bug SPIREDOC-4372
SPIREDOC-4627
SPIREDOC-5754
Fixes the issue that the program hung when converting Word to PDF.
Bug SPIREDOC-4775 Fixes the issue that the application threw the error "System.IndexOutOfRangeException" when converting Word to PDF.
Bug SPIREDOC-5320 Fixes the issue that the extracted text content was incorrect.
Bug SPIREDOC-5352 Fixes the issue that the field was not update correctly.
Bug SPIREDOC-5366 Fixes the issue that the application threw the error "System.ArgumentOutOfRangeException" when converting Word to PDF.
Bug SPIREDOC-5527 Fixes the issue that the page number was incorrect after converting Word to PDF.
Bug SPIREDOC-5534 Fixes the issue that the eq field was displayed incorrectly after converting Word to PDF.
Bug SPIREDOC-5554 Fixes the issue that watermark position was incorrect after converting Word to PDF.
Bug SPIREDOC-5591
SPIREDOC-5666
SPIREDOC-5667
SPIREDOC-5709
Fixes the issue that the TOC was not updated correctly.
Bug SPIREDOC-5592 Fixes the issue that the content of inserted TOC was incorrect.
Bug SPIREDOC-5598 Fixes the issue that the selection value of ComboBox could not be obtained.
Bug SPIREDOC-5600 Fixes the issue that the application threw the error "OutOfMemoryException" when converting Word to PDF.
Bug SPIREDOC-5602 Fixes the issue that the application threw the error "Try to divide by zero" when converting Word to PDF.
Bug SPIREDOC-5685 Fixes the issue that the border was missing after converting Word to PDF.
Bug SPIREDOC-5710 Fixes the issue that the program hung when converting Word to PDF stream.

Spire.PDF

Category ID Description
New feature SPIREPDF-972 Supports deleting images according to location.
PdfDocument doc = new PdfDocument(input);
PdfPageBase page = doc.Pages[0];
PdfImageInfo[] images = page.ImagesInfo;
for (int i = 0; i < images.Length; i++)
{
    if (images[i].Bounds.Contains(x, y))
    //if (images[i].Bounds.IntersectsWith(new RectangleF(x, y, width, height)))
    {
        page.DeleteImage(images[i].Image);
    }
}
New feature SPIREPDF-3675 Supports setting  export values of a Check Box Field.
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile(inputFile);
PdfPageBase page = pdf.Pages[0];
PdfFormWidget formWidget = pdf.Form as PdfFormWidget;
int count = 1;
foreach (PdfFieldWidget field in formWidget.FieldsWidget)
{
if (field is PdfCheckBoxWidgetFieldWidget)
{ PdfCheckBoxWidgetFieldWidget checkbox = field as PdfCheckBoxWidgetFieldWidget; checkbox.SetExportValue("True" + (count++)); }
}
pdf.SaveToFile(outputFile, FileFormat.PDF);
Bug SPIREPDF-1324 Fixes the issue that the text overlapped after converting PDF to image.
Bug SPIREPDF-1373 Fixes the issue that it failed to add a Button Field.
Bug SPIREPDF-1857 Fixes the issue that images couldn’t be extracted.
Bug SPIREPDF-2154 SPIREPDF-2966 SPIREPDF-4116 Fixes the issue that the printout was incorrect after printing PDF.
Bug SPIREPDF-2987 SPIREPDF-3729 SPIREPDF-4009 Fixes the issue that the printout was incorrect when printing a PDF file with a transparent background image.
Bug SPIREPDF-3101 Fixes the issue that an error prompted when opening the result file after compressing PDF.
Bug SPIREPDF-3273 Fixes the issue that it couldn’t get Conformance of PDF/A-3A files.
Bug SPIREPDF-4052 Fixes the issue that the content was incorrect after converting PDF to flow Word documents.
Bug SPIREPDF-4063 Fixes the issue that an error prompted when the opening result files after converting PDF to PDF/A-3A.
Bug SPIREPDF-4072 Fixes the issue that the font of output files was changed after filling Text Box Field.
Bug SPIREPDF-4083 Fixes the issue that the extracted bookmark title was incorrect.
Bug SPIREPDF-4089 Fixes the issue that the application threw the error "Object reference not set to an instance of an object" when merging PDF files.
Bug SPIREPDF-4090 Fixes the issue that the cell was not correctly merged after converting PDF to Excel.
Bug SPIREPDF-4097 Fixes the issue that the application threw the error when extracting text.
Bug SPIREPDF-4105 Fixes the issue that the content was missing after converting PDF to TIFF.
Bug SPIREPDF-4111 Fixes the issue that the application threw the error "CryptographicException" when digitally signing a PDF document with a timestamp.
Bug SPIREPDF-4114 Fixes the issue that the application threw the error "System.StackOverflowException" when setting a background image.
Bug SPIREPDF-4115 Fixes the issue that the content was incorrect after converting PDF to image.
Bug SPIREPDF-4124 Fixes the issue that the application threw the error "System.OutOfMemoryException" when deleting images.
Bug SPIREPDF-4130 Fixes the issue that the annotation was missing after converting PDF to Word.
Bug SPIREPDF-4139 Fixes the issue that the application threw the error "Object reference not set to an instance of an object" when calling the "CreateTemplate" method.
Bug SPIREPDF-4141 Fixes the issue that the application threw the error "can not draw table, because there is no enough space for it" when drawing the table.
Bug SPIREPDF-4149 Fixes the issue that the generated PDF was incorrect after modifying the custom properties.
Bug SPIREPDF-4151 Fixes the issue that the bookmark jump position was incorrect after merging PDF files.
Bug SPIREPDF-4164 Fixes the issue that the application threw the error "System.NullReferenceException" when digitally signing a PDF document with a timestamp.

Spire.XLS

Category ID Description
Bug SPIREXLS-3014 Fixes the issue that the program threw an exception "Invalid section Id of Header Footer image" when converting Excel to PDF.
Bug SPIREXLS-3121 Fixes the issue that the program threw an exception "Invalid cell name" when converting XLSM to PDF.
Bug SPIREXLS-3131 Fixes the issue that after adding a new sheet into the saved document, the generated excel file was opened with Microsoft Excel tool to indicate that the file format was invalid.
Bug SPIREXLS-3132 Fixes the issue about getting incorrect row height.
Bug SPIREXLS-3135 Fixes the issue that setting "1.0 / 0.0" data to create a Line chart, and the generated excel file was opened with Microsoft Excel tool to indicate that there was an error in the content.
Bug SPIREXLS-3141 Fixes the issue that the program threw an exception "The number of series could not exceed 65535."when setting the chart data in excel.
Bug SPIREXLS-3143 Fixes the issue that the program threw an exception "Cannot find font installed on the system" when converting Excel to PDF in Mac system.
Bug SPIREXLS-3147 Fixes the issue that the program throws an exception "Value cannot be null" when setting the header image.
Bug SPIREXLS-3152 Fixes the issue that date format was incorrect when converting Excel to PDF.
Bug SPIREXLS-3157 Fixes the issue that chart data was incorrect when converting Excel to Image.
Bug SPIREXLS-3159 Fixes the issue that that the content was not clear when converting Excel to Image.
Bug SPIREXLS-3161 Fixes the issue that the date format set was incorrectly displayed in Microsoft Excel.