常见常见格式转换一网打尽!国产文档开发套包Spire.Office 2021首版最新发布 丨附下载

Spire.Office for .NET更新至v6.1,本次更新带了一系列新的功能,例如:Spire.XLS 支持计算 MS Excel2019 新增公式,增加了在气泡图中不显示图表标题和转换Shape到图片等新功能;Spire.PDF 支持了自定义签名图片的功能;Spire.Presentation 支持嵌入 zip 对象到 PPTX 文件;Spire.PDFViewer 支持了显示页面标签的功能等等。此外,该版本还修复了大量问题。

你在寻找支持在.NET中用编程方法处理各类格式文档的API吗巧,.NET版企业级文档管理组合套包Spire.Office 2020全新上线!Word、Excel、PPT、PDF、条形码等格式一网打尽。

目前,

新功能及问题修复详情,请参阅如下内容。

Spire.XLS for .NET

功能优化:

新功能:

chart.HasChartTitle = false;
  • 支持了移除图片边框的功能
  • 移除边框两种方式:设置picture.Line.Visible = false或设置Line.Weight = 0
  • 支持了转换Shape到图片的功能
  • Image img = shape.SaveToImage(); shape.SaveToImage(string fileName); shape.SaveToImage(string fileName, ImageFormat imageFormat); shape.SaveToImage(Stream fileStream); shape.SaveToImage(Stream fileStream, ImageFormat imageFormat);
  • 支持了压缩Excel文档中的图片功能
  • Workbook book = new Workbook(); book.LoadFromFile(input); foreach (Worksheet sheet in book.Worksheets) { foreach (ExcelPicture picture in sheet.Pictures) { picture.Compress(30); } } book.SaveToFile(result, ExcelVersion.Version97to2003);

    问题修复:

    Spire.Doc for .NET

    问题修复:

    Spire.PDF for .NET

    新功能:

    PdfSignature signature = new PdfSignature(doc, page, cert, "123456"); signature.ConfigureCustomGraphics(DrawGraphics); private void DrawGraphics(PdfCanvas g) { PointF point1 = new PointF(10, 20); PointF point2 = new PointF(25, 50); PointF point3 = new PointF(60, 20); PointF[] pntArr = { point1, point2, point3 }; PdfRGBColor color = new PdfRGBColor(Color.Red); g.DrawPolygon(new PdfPen(color), pntArr); g.DrawRectangle(new PdfPen(Color.Green), new RectangleF(70, 10, 20, 30)); g.DrawLine(new PdfPen(Color.Blue), new PointF(120, 50), new PointF(95, 5)); g.DrawLine(new PdfPen(Color.Blue), new PointF(100, 30), new PointF(130, 20)); }

    问题修复:

    Spire.Presentation for .NET

    新功能:

    String zipPath= "C:/test.zip"; Presentation ppt = new Presentation(); byte[] data = File.ReadAllBytes(zipPath); Rectangle rec = new Rectangle(80, 60, 100, 100); //The first parameter needs to be passed the complete file name  IOleObject ole = ppt.Slides[0].Shapes.AppendOleObject("test.zip", data, rec); ole.ProgId = "Package"; Image image = Image.FromFile(@"E:demoProductsImagelogo.png"); IImageData oleImage = ppt.Images.Append(image); ole.SubstituteImagePictureFillFormat.Picture.EmbedImage = oleImage; ppt.SaveToFile(@"result.pptx", Spire.Presentation.FileFormat.Pptx2013);
  • 支持加载和打印包含数学公式的PPT/PPTX文档以及转换到其他文档格式。
  • 问题修复:

    Spire.Barcode for .NET

    新功能:

    BarcodeScan task1 = new BarcodeScan(); task1.Scan(bitmap, rectangle, barcodeType);

    问题修复:

    Spire.PDFViewer for .NET

    新功能:

    问题修复:


    是E-iceblue官方友好合作伙伴,如果您对spire.office感兴趣,可以联系在线客服了解具体授权价格和使用机制。
    标签:

    来源:慧都

    声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

    上一篇 2021年1月23日
    下一篇 2021年1月23日

    相关推荐

    发表回复

    登录后才能评论