We’re pleased to announce the release of Spire.Office 11.5.0. In this version, Spire.Doc enhances Word to PDF conversion. Spire.XLS enhances the conversion from Excel to EMF. Spire.Presentation adds support for saving PPTX to video. Spire.PDF adds support for SHA-2 and SHA-256 digital signature algorithms. Moreover, a large number of known bugs has been fixed successfully in this version.
In this version, the most recent versions of Spire.Doc, Spire.PDF, Spire.XLS, Spire.Presentation, Spire.Barcode, Spire.DocViewer, Spire.PDFViewer, Spire.Email, Spire.Spreadsheet, and Spire.OfficeViewer are included.
DLL Versions:
- Spire.Doc.dll v14.5.14
- Spire.Pdf.dll v12.5.8
- Spire.XLS.dll v16.5.6
- Spire.Presentation.dll v11.5.1
- Spire.Barcode.dll v7.5.0
- Spire.Email.dll v6.8.0
- Spire.DocViewer.Forms.dll v8.9.5
- Spire.PdfViewer.Asp.dll v8.2.13
- Spire.PdfViewer.Forms.dll v8.2.13
- Spire.Spreadsheet.dll v7.5.3
- Spire.OfficeViewer.Forms.dll v8.8.1
Click the link to get the version Spire.Office 11.5.0:
More information of Spire.Office new release or hotfix:
Here is a list of changes made in this release
Spre.doc
| Category | ID | Description |
| Bug Fix | SPIREDOC-10767 | Fixed an issue where a “NullReferenceException” was thrown when using FixedLayoutPage.Section. |
| Bug Fix | SPIREDOC-10826 | Fixed an issue where a “NullReferenceException” was thrown when using FixedLayoutDocument.GetLayoutEntitiesOfNode(). |
| Bug Fix | SPIREDOC-11425 | Fixed an issue with incorrect font effects when converting Word to PDF. |
| Bug Fix | SPIREDOC-11845 | Fixed an issue with incorrect value retrieval for IF fields. |
| Bug Fix | SPIREDOC-11855 | Fixed an issue with inconsistent table layout when converting Word to PDF. |
| Bug Fix | SPIREDOC-11858 | Fixed an issue where an “Arg_NullReferenceException” was thrown when converting Word to PDF. |
| Bug Fix | SPIREDOC-11859 | Fixed an issue where a “System.InvalidOperationException” was thrown when removing fields and saving Word to PDF. |
| Bug Fix | SPIREDOC-11897 | Fixed an issue where loading Word documents failed with “Value cannot be null. Arg_ParamName_Name”. |
| Bug Fix | SPIREDOC-11898 | Fixed an issue with inconsistent pagination when converting Word to PDF. |
| Bug Fix | SPIREDOC-11902 | Fixed an issue where a “NullReferenceException” was thrown when replacing bookmarks. |
| Bug Fix | SPIREDOC-11942 | Fixed an issue where incorrect pages were extracted using ExtractPages(0,1). |
Spre.XLS
| Category | ID | Description |
| Bug Fix | SPIREXLS-6129 | Fixed the issue where a "GDI+" exception was thrown when converting Excel files to EMF format. |
| Bug Fix | SPIREXLS-6130 | Fixed the issue where read formula values returned incorrect results. |
| Bug Fix | SPIREXLS-6136 | Fixed the issue where formula values were calculated incorrectly. |
Spire.Presentation
| Category | ID | Description |
| Bug Fix | SPIREPPT-3105 | Fixes the issue where loading PPT format documents threw an exception. |
| Bug Fix | SPIREPPT-3106, SPIREPPT-3119, SPIREPPT-3121, SPIREPPT-3123 | Fixes the issue where converting PowerPoint to PDF resulted in incorrect rendering. |
| Bug Fix | SPIREPPT-3114 | Fixes the issue where shapes became blank when converted to SVG. |
| Bug Fix | SPIREPPT-3116 | Fixes the issue where retrieving images from PowerPoint documents threw a "Parameter is not valid" exception. |
| Bug Fix | SPIREPPT-3122 | Fixes the issue where images were missing after converting PowerPoint to PDF. |
Spire.PDF
| Category | ID | Description |
| New Feature | SPIREPDF-4878 | Added support for SHA-2 and SHA-256 hash algorithms in digital signatures.
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile(inputFile);
X509Certificate2 cert = new X509Certificate2(inputFile_pfx, "e-iceblue");
IPdfSignatureFormatter formatter = new PdfPKCS7Formatter(cert, false);
PdfMDPSignatureMaker pdfMDPSignatureMaker = new PdfMDPSignatureMaker(pdf, formatter);
PdfSignature signature = pdfMDPSignatureMaker.Signature;
signature.Name = "e-iceblue";
signature.ContactInfo = "028-81705109";
signature.Location = "chengdu";
signature.Reason = " this document";
PdfSignatureAppearance appearance = new PdfSignatureAppearance(signature);
appearance.NameLabel = "Signer: ";
appearance.ContactInfoLabel = "ContactInfo: ";
appearance.LocationLabel = "Loaction: ";
appearance.ReasonLabel = "Reason: ";
pdfMDPSignatureMaker.MakeSignature("signName", pdf.Pages[0], 100, 100, 250, 200, appearance);
foreach (HashAlgorithmType hashAlgorithmType in Enum.GetValues(typeof(HashAlgorithmType)))
{
if (string.Equals(hashAlgorithmType.ToString(), "SM3", StringComparison.OrdinalIgnoreCase))
{
continue;
}
//default value of HashAlgorithm is SHA256
formatter.Properties.HashAlgorithm = hashAlgorithmType;
try
{
pdf.SaveToFile( "out.pdf", FileFormat.PDF);
}
catch (Exception ex)
{
Console.WriteLine($"error:{ex.Message}");
}
}
pdf.Dispose();
|
| Bug Fix | SPIREPDF-8016 | Fixed an issue with content loss when printing PDF documents. |
| Bug Fix | SPIREPDF-8017 | Fixed an issue where an "ArgumentException" was thrown when converting PDF to images. |
| Bug Fix | SPIREPDF-8026 | Fixed an issue where "Object reference not set to an instance of an object" was thrown when merging PDF documents. |
| Bug Fix | SPIREPDF-8031 | Fixed an issue where the retrieved font was incorrect after filling PdfTextBoxField content with a specified font. |
| Bug Fix | SPIREPDF-8042 | Fixed an issue where an "IndexOutOfRangeException" was thrown when saving the result document while overwriting the source file. |
| Bug Fix | SPIREPDF-8027 | Fixes the issue where the program threw an "Index was outside the bounds of the array" exception during PDF to image conversion. |
| Bug Fix | SPIREPDF-8032 | Fixes the issue where characters were duplicated when extracting text from PDF pages. |