New Hotfix for Spire.Office Version 2.10.4

Spire.Office

With the effort of our develop team, today we have released the latest hotfix for Spire.Office Platinum hotfix version 2.10.4. In this latest version, all the most recent version of our Spire.Doc, Spire.PDF, Spire.XLS, Spire.Presentation, Spire.PDFViewer, Spire.DocViewer, Spire.DataExport and Spire.Barcode are included.

Versions:

  • Spire.Doc v5.3.75,
  • Spire.PDF v3.2.152,
  • Spire.XLS v7.6.46,
  • Spire.Presentation v2.2.19,
  • Spire.PDFViewer v2.4.47,
  • Spire.DocViewer v1.8.11,
  • Spire.DataExport v3.5.7,
  • Spire.Barcode v1.2.5,

Free Trial to evaluate Spire.Office v2.10.4 here:

http://www.e-iceblue.com/Download/download-office-for-net-now.html


Details of New features and Bug solutions:

Spire.Doc

New feature:

Add new struct for PrivateFontPath that enables setting the path to font when convert word to PDF.

Document document = new Document();
document.LoadFromFile("test.docx");
ToPdfParameterList parms = new ToPdfParameterList()
{
    PrivateFontPaths = new List()
    { 
     new PrivateFontPath("font","font.ttf") 
    }
};
document.SaveToFile(resultFileName, parms);
ppt.SaveToFile("Result.pptx", FileFormat.Pptx2010);

Bug Solutions:

  • Fixes the issue where it failed to load some RTF files.
  • Fixes the issue where the output PDF is incorrect when converts some Word documents to PDF.
  • Fixes the issue where the IF field in the Word document updated wrong when convert Word document to PDF.
  • Fixes the issue that caused an exception happened when save Word to PDF.
  • Fixes the issue where the merged value displayed incorrect when mail merged.
  • Fixes the issue where the barcode font can't be embedded correctly to PDF when convert Word document to PDF.
  • Fixes the issue where it failed to convert some rtf to pdf.
  • Fixes the issue that caused the character before line break lost when saves to PDF after completing mail merge.
  • Fixed the issue where it failed to convert some .doc documents to PDF.

Spire.XLS

New Features:

  • Add new method as below to save sheet to EMF image.
  • Worksheet.SaveToEMFImage(string FilePath, int firstRow, int firstColumn, int lastRow, int lastColumn, EmfType emfType);
    
  • Add new property of pivot table that enables setting the classic layout for pivot table XlsPivotTable.Options.ShowGridDropZone = true;

Bug Solutions:

  • Fixes an issue where the series' colors of chart lost when converted .xls to .xlsx.
  • Fixes an issue where an exception threw that startIndex cannot be larger than the length of string when save .xlsx to .xls.
  • Fixes an issue where the output image is incorrect when used the book.Worksheets[string sheetName].SaveToImage(int firstRow, int firstColumn, int lastRow, int lastColumn) method to save sheet to image.
  • Fixes an issue where the data/date format wasn't correct when converted .xlsx to pdf in invariant Culture.
  • Fixes an issue where an exception threw that Specified argument was out of the range of valid values while loading .xlsx document.
  • Fixes an issue where the color of cell displayed incorrect when set several cells' color at one time.

Spire.PDF

New Feature:

Add new method as below to save sheet to EMF image.

PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile(fp.TestPath + "a638 Signed.pdf");
PdfFormWidget form = pdf.Form as PdfFormWidget;
if (form.XFAForm != null)
        {
            for (int i = 0; i < form.XFAForm.Fields.Count; i++)
            { 
               form.XFAForm[form.XFAForm.Fields[i]]= "Hello";
            }
        }
else
        {
            for (int i = 0; i < form.FieldsWidget.Count; ++i)
            {
            }

Bug solutions:

  • Fixes the issue where the image is blank when converted PDF to Image.
  • Fixes the issue that caused the checkbox in image to be changed to Chinese when convert PDF to Image.
  • Fixes the issue where the link failed to displayed in PDF when convert XPS to PDF.
  • Fixes the issue where some attachments in PDF can't be opened when added attachments to PDF.
  • Fixes the issue where the TrueType Font can't be embedded into PDF.
  • Fixes the issue that caused signature failed to verified.
  • Fixes the issue where the link displayed position was not correct when add link to PDF.
  • Fixes the issue that caused certificate failed to extract.
  • Fixes the issue that caused PDF failed to convert to Image.
  • Adds a new method to resolve the issue that caused only "black" word displays on the PDF when convert HTML to PDF.

Spire.Presentation

New Feature:

Add new feature to enable developers to load .pps format document and save to .ppsx format document.

Add new feature to create, save, extract, and edit SmartArt.

Presentation pres = new Presentation();
Spire.Presentation.Diagrams.ISmartArt sa = pres.Slides[0].Shapes.AppendSmartArt(0,0,400,400,Spire.Presentation.Diagrams.SmartArtLayoutType.BasicBlockList);
sa.Style = Spire.Presentation.Diagrams.SmartArtStyleType.Cartoon;
foreach(object a in sa.Nodes)
sa.Nodes.RemoveNode(0);
Spire.Presentation.Diagrams.SmartArtNode node = sa.Nodes.AddNode();
sa.Nodes[0].TextFrame.Text = "aa";
node = sa.Nodes.AddNode();
node.TextFrame.Text = "bb";
node.TextFrame.TextRange.Fill.FillType = Spire.Presentation.Drawing.FillFormatType.Solid;
node.TextFrame.TextRange.Fill.SolidColor.KnownColor = KnownColor.Red;
sa.ColorStyle = Spire.Presentation.Diagrams.SmartArtColorType.GradientLoopAccent3;
pres.SaveToFile("SmartArtTest1.pptx",FileFormat.Pptx2007);

Add new feature to convert the presentation slide to EMF image.

ppt.Slides[0].SaveAsEMF("aa.emf");

Add new property of chart to enable protecting the data of the chart.

chart.IsDataProtect = true;

Bug solutions:

  • Improve the issue where the size of the generated pdf increased very larger than original .ppt document when converted .ppt to PDF.
  • Fixe the issue where legend font size has changed when converted .ppt to PDF.
  • Fixe the issue where date can't be assigned to chart data.
  • Fixe the issue where set the color of ChartDataPoint didn't work.

Spire.PDFViewer

Bug solutions:

  • Improve the performance that it took long time to open PDF document in Silverlight.
  • Fixes the issue where the PDF document can't be displayed in the PDFViewer in Silverlight.