We are excited to announce the release of Spire.Office 7.1.2. This version brings some new features, for example, Spire.PDF supports NET 6.0 and converting OFD to PDF and image; Spire.Presentation supports .NET6.0, supports adding the setting to convert high quality images; Spire.PDFViewer supports rotating page when viewing PDF by PdfViewer. Meanwhile, a lot of bugs have been successfully fixed. More details are listed as follow.
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 v10.1.3
- Spire.Pdf.dll v8.1.4
- Spire.XLS.dll v11.12.2
- Spire.Email.dll v5.1.0
- Spire.DocViewer.Forms.dll v6.12.0
- Spire.PdfViewer.Forms.dll v7.1.4
- Spire.PdfViewer.Asp.dll v7.1.4
- Spire.Presentation.dll v7.1.4
- Spire.Spreadsheet v6.1.2
- Spire.OfficeViewer.Forms.dll v7.1.2
- Spire.Barcode.dll v6.1.1
- Spire.DataExport.dll v4.1.9
- Spire.DataExport.ResourceMgr.dll v2.1.0
- Spire.License.dll v1.4.0
Click the link to get the version Spire.Office 7.1.2:
More information of Spire.Office new release or hotfix:
Here is a list of changes made in this release
Spire.PDF
Category | ID | Description |
New feature | SPIREPDF-4762 | Supports .NET 6.0 |
New feature | SPIREPDF-4577 | Adds the methods of decrypting PDFs.
pdf.Security.DecryptOwnerPassWord(string ownerPassword); pdf.Security.DecryptUserPassWord(); |
New feature | SPIREPDF-4594 | Supports getting the PDF page where the attachment is located.
PdfDocument doc = new PdfDocument(); doc.LoadFromFile(input); int pageIndex = GetAttachmentPage(doc.Pages, attachmentName); private int GetAttachmentPage(Spire.Pdf.Widget.PdfPageCollection pageCollection, string fileName) { if (string.IsNullOrEmpty(fileName)) { throw new ArgumentException("fileName is null or empty"); } for (int i = 0; i < pageCollection.Count; i++) { PdfPageBase page = pageCollection[i]; for (int j = 0; j < page.AnnotationsWidget.Count; j++) { Spire.Pdf.Annotations.PdfFileLinkAnnotationWidget pdfFileLinkAnnotationWidget = page.AnnotationsWidget[j] as Spire.Pdf.Annotations.PdfFileLinkAnnotationWidget; if (pdfFileLinkAnnotationWidget != null) { if (fileName.Equals(pdfFileLinkAnnotationWidget.FileName)) { return i; } } } } return -1; } |
New feature | SPIREPDF-3345 SPIREPDF-4825 |
Supports removing JavaScript of the PDF document.
PdfDocument doc = new PdfDocument(@"input.pdf"); doc.RemoveDocumentJavaScript(); doc.SaveToFile(@"output.pdf", FileFormat.PDF); |
New feature | - | Supports converting OFD to PDF and image.
OfdConverter converter = new OfdConverter("inputFile"); converter.ToPdf("outputFile"); converter.ToImage(pageIndex); converter.ToImage(pageIndex, dpiX, dpiY); |
New feature | SPIREPDF-2732 | Supports setting layer print properties.
converter.ToLinearizedPdf("Linearized.pdf"); PdfDocument pdfDoc = new PdfDocument(); pdfDoc.LoadFromFile(inputFile); Spire.Pdf.PdfPageBase page; pdfDoc.FileInfo.IncrementalUpdate = false; string MvAddedlaverName1 = "GorLaverPagel"; for (int iPage = 0; (iPage <= (pdfDoc.Pages.Count - 1)); iPage++) { page = pdfDoc.Pages[iPage]; Spire.Pdf.Graphics.Layer.PdfLayer wtLaver_1 = pdfDoc.Layers.AddLayer(MvAddedlaverName1); wtLaver_1.ViewState = LayerViewState.Allways; wtLaver_1.PrintState = LayerPrintState.Nerver; wtLaver_1.ExportState = LayerExportState.ExportWhenVisible; Spire.Pdf.Graphics.PdfCanvas gPdfCanvas_1 = wtLaver_1.CreateGraphics(page.Canvas); gPdfCanvas_1.SetTransparency(0.4f); gPdfCanvas_1.DrawString(tStatusString, new PdfFont(PdfFontFamily.Helvetica, 28), new PdfSolidBrush(Color.Black), new System.Drawing.PointF(((page.Size.Width - 265) - (524 / 2)), (page.Size.Height - (50 - 127)))); wtLaver_1.CreateGraphics(gPdfCanvas_1); gPdfCanvas_1.SetTransparency(1); } pdfDoc.SaveToFile(outputFile, FileFormat.PDF); pdfDoc.Close(); |
New feature | SPIREPDF-2871 | Supports adding InkAnnotation.
System.Collections.Generic.List<int[]> inkList = new System.Collections.Generic.List<int[]>(); int[] intPoints = new int[] { 100,800, 200,800, 200,700 }; inkList.Add(intPoints); PdfInkAnnotation ia = new PdfInkAnnotation(inkList); ia.Color = Color.LightBlue; ia.Border.Width = 12; ia.Opacity = 0.3f; ia.Text = "e-iceblue"; pdfPage.AnnotationsWidget.Add(ia); |
Bug | SPIREPDF-1683 SPIREPDF-4757 |
Fixes the issue that loading the PDF with the encrypted password failed |
Bug | SPIREPDF-2412 | Fixes the issue that the content of the converted image was incorrect |
Bug | SPIREPDF-4449 | Fixes the issue that the content of the converted XPS was incorrect |
Bug | SPIREPDF-4578 | Fixes the issue that TIFF had a white background in the result PDF when drawing TIFF on PDF page on .NETCore platform |
Bug | SPIREPDF-4667 | Fixes the issue that the content was inconsistent when converting XPS to PDF |
Bug | SPIREPDF-4759 | Fixes the issue that the result PDF size became larger after deleting image |
Bug | SPIREPDF-4766 | Fixes the issue that a blank section appeared on the right side of the converted OFD |
Bug | SPIREPDF-4768 | Fixes the issue that the word containing the hyphen character was incorrect when converting PDF to SVG |
Bug | SPIREPDF-4779 | Fixes the issue that the application threw System.NullReferenceException when converting PDF to images |
Bug | SPIREPDF-4783 | Fixes the issue that the application threw System.NullReferenceException when printing PDF |
Bug | SPIREPDF-4785 | Fixes the issue that setting text highlighting failed |
Bug | SPIREPDF-974 | Fixes the issue that it was failed to add .emf file to PDF. |
Bug | SPIREPDF-3457 | Fixes the issue that the items of XfaChoiceListField was unable to get. |
Bug | SPIREPDF-4821 | Fixes the issue that the extracted text was incorrect. |
Bug | SPIREPDF-4849 | Fixes the issue that the content was lost after replacing text. |
Bug | SPIREPDF-4853 | Fixes the issue that the position of the found text was incorrect. |
Bug | SPIREPDF-4855 | Fixes the issue that the custom time of the digital signature was incorrect. |
Bug | SPIREPDF-4861 | Fixes the issue that some content was lost after copying annotation to other page. |
Bug | SPIREPDF-4871 | Fixes the issue that the added PdfRubberStampAnnotation didn't display in output PDF. |
Bug | SPIREPDF-4875 | Fixes the issue that the application threw "System.ArgumentOutOfRangeException" after setting grid RowSpan. |
Bug | SPIREPDF-1245 | Fixes the issue that the text content extracted was incorrect. |
Bug | SPIREPDF-3731 | Fixes the issue that the signature was not valid when adding the same signature to each page of the PDF. |
Bug | SPIREPDF-4738 | Fixes the issue that the output was incorrect after adding PdfPolygonAnnotation. |
Bug | SPIREPDF-4784 | Fixes the issue that the application threw "IndexOutOfRangeException" when extracting text. |
Bug | SPIREPDF-4807 | Fixes the issue that the content was incorrect after printing. |
Bug | SPIREPDF-4815 | Fixes the issue that the effect was incorrect after setting the PdfPolyLineAnnotation border thickness. |
Bug | SPIREPDF-4818 | Fixes the issue that the bold font style didn't take effect when filling data in TextBox field. |
Bug | SPIREPDF-4826 | Fixes the issue that the content was incorrect after printing. |
Bug | SPIREPDF-4847 | Fixes the issue that the attachment file name extracted was incorrect. |
Bug | SPIREPDF-4854 | Fixes the issue that the application threw "System.IO.IOException" when merging documents and saving the generated document to a input file path. |
Bug | SPIREPDF-4858 | Fixes the issue that the application threw "System.NullReferenceException" when converting PDF to PDF/A. |
Spire.Presentation
Category | ID | Description |
New feature | SPIREPPT-1699 | Supports getting the type and color of slide background.
ISlide sld = ppt.Slides[0] as ISlide; FillFormat bg = sld.DisplaySlideBackground.GetBackgroundFillFormat(sld as ActiveSlide); switch (bg.FillType) { case FillFormatType.Solid: sb.AppendLine("type:" + bg.FillType + "\tcolor:" + bg.SolidColor.Color); break; case FillFormatType.Gradient: sb.AppendLine("type:" + bg.FillType); foreach (GradientStop stop in bg.Gradient.GradientStops) { sb.AppendLine("position:" + stop.Position + "\tcolor:" + stop.Color.Color); } break; default: sb.AppendLine("type:" + bg.FillType); break; } |
New feature | SPIREPPT-1766 | Supports adding the setting to convert high quality images.
Presentation.HighQualityImage = true; |
Bug | SPIREPPT-1748 | Optimized the memory consumption when operating PowerPoint file image. |
Bug | SPIREPPT-1752 | Fixes the issue that the application threw "System.NullReferenceException" when getting audio data. |
Bug | SPIREPPT-1753 | Fixes the issue that the grid line color obtained was incorrect. |
Bug | SPIREPPT-1756 | Fixes the issue that the "Duration" time obtained was incorrect. |
Bug | SPIREPPT-1757 | Fixes the issue that the obtained display color of table cell was incorrect. |
Bug | SPIREPPT-1758 | Fixes the issue that the color of math equation was lost after saving slide as image. |
Bug | SPIREPPT-1759 | Fixes the issue that the content was incorrect after saving SmartArt to image. |
Bug | SPIREPPT-1764 | Fixes the issue that the application threw "System.IndexOutOfRangeException" when saving shape to image. |
Bug | SPIREPPT-1768 | Fixes the issue that the returned value of "HasBullet" was wrong . |
Bug | SPIREPPT-1770 | Fixes the issue that the math equation lost after converting PowerPoint to PDF. |
Bug | SPIREPPT-1771 | Fixes the issue that the application threw "System.NullReferenceException" when encrypting a PowerPoint file that contains math equations. |
Bug | SPIREPPT-1772 | Fixes the issue that the obtained display color of table cell text was incorrect. |
Bug | SPIREPPT-1775 | Fixes the issue that the obtained value of "VerticalTextType" was incorrect. |
Bug | SPIREPPT-1783 | Fixes the issue that some content was not clear after saving PowerPoint to image. |
Bug | SPIREPPT-1785 | Fixes the issue that the comments weren't able to obtained. |
Bug | SPIREPPT-1796 | Fixes the issue that the leader lines of Datalabel were incorrect when converting PowerPoint to PDF. |
Bug | SPIREPPT-1800 | Fixes the issue that the obtained PresetClassType value of animation was incorrect. |
Bug | SPIREPPT-1801 | Fixes the issue that the color of chart trend line was lost after saving PowerPoint to PDF. |
Spire.Doc
Category | ID | Description |
Bug | SPIREDOC-6666 | Fixes the issue that the page number was incorrect after updating document fields |
Bug | SPIREDOC-6987 | Fixes the issue that the paragraph indentation was incorrect when converting word file to PDF. |
Bug | SPIREDOC-6995 | Optimized the time to convert word files to PDF. |
Bug | SPIREDOC-7104 | Fixes the issue that the list numbers were incorrect when converting HTML to Word. |
Bug | SPIREDOC-6378 | Fixes the issue that the number format was incorrect when filling the merged fields. |
Bug | SPIREDOC-7131 | Fixes the issue that the application threw an error "System.ArgumentOutOfRangeException" when updating document fields in multiple threads |
Bug | SPIREDOC-7132 | Fixes the issue that the application threw an error "Unable to cast object of type 'spr┗' to type 'spr▙"when loading file. |
Bug | SPIREDOC-7132 | Fixes the issue that the application threw an error "An item with the same key has already been added"when loading file. |
Bug | SPIREDOC-7132 | Fixes the issue that the application threw an error "Byte array for GUID must be exactly 16 bytes long" when loading file. |
Bug | SPIREDOC-7132 | Fixes the issue that the application threw an error "Unable to read beyond the end of the stream" when loading file. |
Bug | SPIREDOC-7132 | Fixes the issue that the application threw an error "Non-negative number required. Parameter name: value" when loading file. |
Bug | SPIREDOC-7132 | Fixes the issue that the application threw an error "Input string was not in a correct format" when loading file. |
Bug | SPIREDOC-7132 | Fixes the issue that the application threw an error "Unknown color type encountered during WordML import - #0" when loading file. |
Bug | SPIREDOC-7132 | Fixes the issue that the application threw an error "Object reference not set to an instance of an object" when loading file. |
Spire.PDFViewer
Category | ID | Description |
New feature | SPIREPDFVIEWER-526 | Supports rotating page when viewing PDF by PdfViewer. |
Bug | SPIREPDFVIEWER-205 SPIREPDFVIEWER-206 SPIREPDFVIEWER-532 |
Fixes the issue that the PDF content displayed was incorrect. |
Bug | SPIREPDFVIEWER-219 SPIREPDFVIEWER-524 SPIREPDFVIEWER-528 |
Fixes the issue that the PDF content displayed was blank. |
Bug | SPIREPDFVIEWER-378 | Fixes the issue that the PDF text content displayed was garbled. |
Bug | SPIREPDFVIEWER-469 | Fixes the issue that the scroll bars still existed after setting "fitpage" for the zoom mode. |
Bug | SPIREPDFVIEWER-518 | Fixes the issue that the application threw "ArgumentOutOfRangeException" after changing the zoom mode. |
Bug | SPIREPDFVIEWER-519 SPIREPDFVIEWER-536 |
Fixes the issue that the PDF content displayed was incorrect when using in WPF project. |
Bug | SPIREPDFVIEWER-520 | Fixes the issue that the PDF image was covered. |
Bug | SPIREPDFVIEWER-543 | Fixes the issue that some PDF content can not be displayed. |