为编程爱好者分享易语言教程源码的资源网
好用的代理IP,游戏必备 ____广告位招租____ 服务器99/年 ____广告位招租____ ____广告位招租____ 挂机,建站服务器
好用的代理IP,游戏必备 ____广告位招租____ 服务器低至38/年 ____广告位招租____ ____广告位招租____ 挂机,建站服务器

网站首页 > 网络编程 > 其它综合 正文

Spire.Office 7.9.2 已发布

三叶资源网 2022-11-02 19:18:50 其它综合 171 ℃ 0 评论

Spire.Office 7.9.2 已发布。本次更新带来了一些新功能,如:Spire.PDF 支持设置书签的缩放类型为承前缩放及添加包含图片的数字签名;Spire.XLS 支持获取条件格式的颜色;Spire.Presentation 支持查找幻灯片中第一个出现的匹配文本并修改其样式。此外,该版本还修复很多已知问题。详情请阅读以下内容。

该版本涵盖了最新版的 Spire.Doc,Spire.PDF,Spire.XLS,Spire.Email,Spire.DocViewer, Spire.PDFViewer,Spire.Presentation,Spire.Spreadsheet, Spire.OfficeViewer, Spire.DocViewer, Spire.Barcode, Spire.DataExport。

版本信息如下:

  • Spire.Doc.dll v10.9.9
  • Spire.Pdf.dll v8.9.16
  • Spire.XLS.dll v12.9.3
  • Spire.Presentation.dll v7.9.2
  • Spire.Email.dll v5.8.0
  • Spire.DocViewer.Forms.dll v7.8.0
  • Spire.PdfViewer.Forms.dll v7.8.0
  • Spire.PdfViewer.Asp.dll v7.8.0
  • Spire.Spreadsheet.dll v6.9.0
  • Spire.OfficeViewer.Forms.dll v7.9.2
  • Spire.Barcode.dll v6.8.0
  • Spire.DataExport.dll v4.8.0
  • Spire.DataExport.ResourceMgr.dll v2.1.0

获取Spire.Office 7.9.2 请点击:

https://www.e-iceblue.cn/Downloads/Spire-Office-NET.html


Spire.PDF

新功能:

  • 支持在创建小册子时设置装订方向。
float width = PdfPageSize.A4.Width * 2;
float height = PdfPageSize.A4.Height;           
Stream outputstreaml = File.Open(outputFile, FileMode.Create, FileAccess.ReadWrite, FileShare.Read);
BookletOptions bookletOptions = new BookletOptions();
bookletOptions.BookletBinding = Spire.Pdf.Utilities.PdfBookletBindingMode.Left;//left是左装订,第一页靠右
SizeF size = new SizeF(width, height);
PdfBookletCreator.CreateBooklet(doc, outputstreaml, size, bookletOptions);
  • 支持将PDF与附件一起转换为OFD。
  • 支持设置书签的缩放类型为承前缩放。
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile(inputFile);
            PdfBookmarkCollection bookmarks = pdf.Bookmarks;
            for(int i = 0; i<bookmarks.Count; i++)
            {
                PdfBookmark bookmark = bookmarks[i];
SetBookmarkAction(bookmark);
            }
            pdf.SaveToFile(outputFile, FileFormat.PDF);

  private void SetBookmarkAction(PdfBookmark bookmark)
{
    PdfDestination dest = bookmark.Destination;
    dest.Mode = PdfDestinationMode.Location;
    dest.Zoom = 0;
    for (int i = 0; i < bookmark.Count; i++)
    {
        PdfBookmark childbookmark = bookmark[i];
        SetBookmarkAction(childbookmark);
    }
  • 支持设置超链接的缩放类型为承前缩放。
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile(inputFile);
            PdfAnnotationCollection annotations = pdf.Pages[0].AnnotationsWidget;
            for(int i = 0; i<annotations.Count; i++)
            {
                PdfDocumentLinkAnnotationWidget anno = annotations[i] as PdfDocumentLinkAnnotationWidget;
PdfDestination dest = anno.Destination;
dest.Mode = PdfDestinationMode.Location;
                dest.Zoom = 0;
                anno.Destination = dest;
            }
            pdf.SaveToFile(outputFile, FileFormat.PDF);
            pdf.Close();
  • 支持添加包含图片的数字签名。
static void Main(string[] args)
{

    PdfDocument doc = new PdfDocument();
    doc.LoadFromFile(@"test.pdf");
    PdfPageBase pagebase = doc.Pages[0];
    X509Certificate2 x509 = new X509Certificate2(@"gary.pfx", "e-iceblue");
    PdfOrdinarySignatureMaker signatureMaker = new PdfOrdinarySignatureMaker(doc, x509);
    IPdfSignatureAppearance signatureAppearance = new PdfCustomSignatureAppearance();
    signatureMaker.MakeSignature("Signature", signatureAppearance);
    doc.SaveToFile(@"new.pdf", Spire.Pdf.FileFormat.PDF);
    doc.Close();
}
public class PdfCustomSignatureAppearance : IPdfSignatureAppearance
{
    public void Generate(PdfCanvas g)
    {
        Image image = Image.FromFile("test.png");
        g.DrawImage(PdfImage.FromImage(image), new PointF(0, 0));
    }
}

问题修复:

  • 修复了文本域更新后文本位置不正确的问题。
  • 修复了PDF转SVG后文本位置偏移的问题。
  • 修复了PDF转图片失败的问题。
  • 修复了创建小册子时页面顺序错误的问题。
  • 修复了PDF转OFD后无法打开的问题。
  • 修复了提取表格内容重复的问题。
  • 修复了PDF转SVG后字体样式丢失的问题。
  • 修复了加载PDF程序挂起的问题。
  • 修复了将PDF转换为图像后,虚线效果不正确的问题。
  • 修复了打印PDF后,文本位置不正确的问题。
  • 修复了在打开有填充图像字段的PDF文件时出现错误的问题。
  • 修复了替换窗体域中的文本不成功的问题。
  • 修复了提取出的表格内容不正确的问题。
  • 修复了提取表格程序抛异常System.ArgumentException的问题。
  • 修复了创建的含有图片的PDF文件在MacOS12.5中用Preview工具打开报错的问题。
  • 修复了在德语环境下执行pdf.SaveToFile(file)时程序报错“Invalid date string, after year“的问题。
  • 修复了转换PDF到图片几何图形上的英文字母丢失的问题。
  • 修复了转换PDF到图片内容丢失的问题。

Spire.XLS

新功能:

  • 支持获取条件格式的颜色。
  • Color color = cRange.GetConditionFormatsStyle().Color;

问题修复:

  • 修复了转换XLS到PDF,内容格式不正确的问题。
  • 修复了在Linux系统获取RichText,程序抛 "System.ArgumentException" 异常。
  • 修复了当系统DPI设置为125%,保存图表到图片内容被裁切的问题。
  • 修复了转换Excel到PDF,分页不正确的问题。
  • 修复了当系统DPI设置为125%,保存Excel到图片内容不完整的问题。
  • 修复了转换图表到图片,内容不正确的问题。
  • 修复了插入Pdf OLE对象到Excel失败的问题。
  • 修复了转换Excel到PDF,程序抛异常 "Shape failing to render".
  • 修复了加载Excel,程序挂起的问题。
  • 修复了新版本对于sheet.Range[0, 1].Text= "=SUM(18,29)" 生成的单元格数据格式为公式计算值而非文本的问题。
  • 修复了加载Excel,程序抛异常 "Element is an invalid XmlNodeType".
  • 修复了转换Excel到图片,内容丢失的问题。
  • 修复了插入日期到单元格,日期格式丢失的问题。

Spire.Presentation

新功能:

  • 支持查找幻灯片中第一个出现的匹配文本并修改其样式。
Presentation ppt = new Presentation();
            ppt.LoadFromFile(inputFile);
            string text = "create";
            TextRange textRange = ppt.Slides[0].FindFirstTextAsRange(text);
            textRange.Fill.FillType = FillFormatType.Solid;
            textRange.Fill.SolidColor.Color = Color.Red;
            textRange.FontHeight = 28;
            textRange.LatinFont = new TextFont("微软雅黑");
            textRange.IsBold = TriState.True;
            textRange.IsItalic = TriState.True;
            textRange.TextUnderlineType = TextUnderlineType.Double;
            textRange.TextStrikethroughType = TextStrikethroughType.Single;
  • 支持转换PPT到PDF时设置不转换隐藏的幻灯片。
         Presentation presentation = new Presentation();
            presentation.LoadFromFile(input);
            presentation.SaveToPdfOption.ContainHiddenSlides = false;
            presentation.SaveToFile(output, FileFormat.PDF);

问题修复:

  • 修复了设置数据标签字体大小和颜色不起作用的问题。
  • 修复了转换PPT到图片时内容丢失的问题。
  • 修复了加载PPT文档抛出System.ArgumentOutOfRangeException异常的问题。

Spire.Doc

问题修复:

  • 修复了转换Word到PDF灰色矩形左边框被裁剪掉的问题。
  • 修复了转换Word到PDF部分内容丢失的问题。

Spire.Spreadsheet

问题修复:

  • 修复了 Worksheet.Resize 方法无效的问题。

来源:三叶资源网,欢迎分享,公众号:iisanye,(三叶资源网⑤群:21414575

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

百度站内搜索
关注微信公众号
三叶资源网⑤群:三叶资源网⑤群

网站分类
随机tag
pcqq扫码BPL综合例程奇易浏览框火山封装类库编辑框文本颜色监视热键CSDN微信登录sign算法源码Galanz批量注册高级表格扩展类模块上传视频图像二值化LocalStorageflash动画RapidJSON创建access数据库LOL无限视距异或校验源码.
最新评论