Spire.Office

Spire.Office 4.4.1 is released

We are pleased to announce that Spire.Office is released today. This version adds some features, such as Spire.XLS supports to customize the font file path, Spire.Presentation supports to set whether to keep notes when converting PPT to SVG and Spire.Barcode supports to setting the top text margin of barcode. Besides, the speed of copying worksheets and conversion from Word to PDF are optimized. The issues that occurred when converting XPS to PDF, PDF to Image, PPT to PDF, Word to XPS/Image/PDF and copying a sheet are fixed. See the content below for more details.

In this version, the most recent version 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 Version:

  • Spire.Doc.dll v7.4.12
  • Spire.Pdf.dll v5.4.13
  • Spire.XLS.dll v9.4.8
  • Spire.Presentation.dll v4.4.7
  • Spire.Email.dll v2.1.10
  • Spire.DocViewer.Forms.dll v4.4.1
  • Spire.PdfViewer.Forms.dll v4.4.3
  • Spire.PdfViewer.Asp.dll v4.4.3
  • Spire.Spreadsheet v3.4.1
  • Spire.OfficeViewer.Forms.dll v4.4.1
  • Spire.Barcode.dll v3.4.0
  • Spire.DataExport.dll v4.1.9
  • Spire.DataExport.ResourceMgr.dll v2.1.0
  • Spire.Common.dll v2.4.8
  • Spire.License.dll v1.3.7
Click the link to get the version Spire.Office 4.4.1:
More information of Spire.Office new release or hotfix:

Spire.PDF

Bug Fixes:

  • Fixes the issue that there were some incorrect characters when converting XPS to PDF.
  • Fixes the issue that the content was lost when converting PDF page contained only one image to Image.
  • Fixes the issue that the application threw an error "the index beyond the bounds of the array" when converting a PDF to Image.
  • Fixes the issue that the images which were included in the content changed to the black boxes when converting a PDF to Image.

Spire.XLS

New Features:

  • Adds CustomFontFilePaths property to set the font files that are not installed on the computer.
  • workbook.CustomFontFilePaths = new string[] { inputFontfile };
    

Optimizations:

  • Optimizes the time of creating a chart when setting a larger chart data range.
  • Optimizes the speed of copying worksheets.

Bug Fixes:

  • Fixes the issue that the content was lost when converting an .xlsx document to images.
  • Fixes the issue that the application threw an error "don't set the object reference to the object instance" when copying a sheet containing a chart.
  • Fixes the issue that the application threw an error "cannot find the required relation" when loading an .xlsx document.
  • Fixes the issue that the content was lost when converting an .xlsx document generated by NPOI to PDF.
  • Fixes the issue that the application threw an error "don't set the object reference to the object instance" when calculating the formulas using CalculateAllValue method.

Spire.Presentation

New Features:

  • Adds SlidePicture.IsCropped property to determine whether an image was cropped.
  • foreach (IShape shape in ppt.Slides[0].Shapes)
    {
        if (shape is SlidePicture)
        {
            SlidePicture slidepicture = (SlidePicture)shape;
            bool reault = slidepicture.IsCropped;
        }           
    }
    
  • Adds the presentation.IsNoteRetained property to set whether to keep notes when converting PPT to SVG.
  • Presentation ppt = new Presentation();
    ppt.LoadFromFile(inputPPT);
    ppt.IsNoteRetained = true;
    Queue bytes = ppt.SaveToSVG();
    int length = bytes.Count;
    for (int i = 0; i < length; i++)
    {
        FileStream filestream = new FileStream(string.Format(@"output_{0}.svg", i), FileMode.Create);
        byte[] outputBytes = bytes.Dequeue();
        filestream.Write(outputBytes, 0, outputBytes.Length);      
    }
    ppt.Dispose();
    

Bug Fixes:

  • Fixes the issue that the chart data label moved up when converting PPT to PDF.

Spire.Doc

Optimizations:

  • Optimizes the speed of conversion from Word to PDF.

Bug Fixes:

  • Fixes the issue that the content pagination was incorrect when converting a .doc document to PDF.
  • Fixes the issue that the application threw an error "the format of the input string is incorrect" when loading an Html document.
  • Fixes the issue that the border of the textbox was lost when saving a .doc document.
  • Fixes the issue that the application threw an error "the reference object was not set to an instance of the object" when loading a .docx document.
  • Fixes the issue that the text color was changed from blue to black when converting a .docx document to PDF.
  • Fixes the issue that the content was displayed incorrectly when operating mail merge.
  • Fixes the issue that the text wrapping was incorrect when converting a .docx document to PDF.
  • Fixes the issue that the obtained value was incorrect after adding a document custom property containing # symbol.
  • Fixes the issue that the application threw an error "Unexpected parent of the id attribute" when loading a .docx document containing Russian characters.
  • Fixes the issue that the borders and background color of the textboxes were lost when saving a .docx document.
  • Fixes the issue that the content was lost when converting Word to XPS.
  • Fixes the issue that the application threw an error "pItem haven't found in paragraph Items." when converting Word containing "\t"(tab) in the header paragraph to PDF.
  • Fixes the issue that the content was cut when converting Word to images.
  • Fixes the issue that the tab leader in the table of contents was lost when converting Word to PDF.

Spire.Barcode

New Features:

  • Supports setting the top text margin of barcode.
  • barcodeSetting.TopTextMargin = 50.0f;