Spire.Office 8.2.2 for NET 开年之喜

news2024/10/2 22:26:23

Spire.Office for .NET对文档的操作包括打开,创建,修改,转换,打印,浏览 Word、Excel、PowerPoint® 和 PDF 文档,以及将数据从数据源导出为常用的文档格式,如:Word,Excel,RTF,Access,PowerPoint,PDF,XPS,HTML,XML,Text,CSV,DBF 和剪贴版等格式

 

release of Spire.Office 8.2.2. In this version, Spire.PDF adds TextCompressionOptions to support setting compression type and supports setting the text alignment type for PdfFreeTextAnnotation; Spire.Doc supports the FLOOR.MATH formula and "what if analysis" goal seek; Spire.Presentation enhances the conversion from PowerPoint to images. Besides, a lot of known issues are successfully fixed in this update. More details are listed below. 

Spire.Office for .NET用于创建、编辑、转换和打印 Microsoft Word 文档的Word控件。支持 Word97-2003,Word2007,Word2010 以及 Word2013。能在 Word 97/2003/2007/2010/2013 和 XML、RTF、TXT、XPS、EPUB、EMF、HTML、ODT 等格式文件之间进行双向转换,还能将 Word 文件转换为 PDF 和 SVG 文件格式。其运行系统(服务器端或客户端)均无需安装 Microsoft Word,即可将Microsoft Word文档的操作功能集成到任何开发人员的 .NET 应用程序

Here is a list of changes made in this release
Spire.PDF
CategoryIDDescription
New featureSPIREPDF-5132Supports setting the color space of PdfSeparationColor as RGB.
PdfDocument pdf = new PdfDocument();
 PdfPageBase page = pdf.Pages.Add();
 PdfRGBColor c = Color.Purple;
 
 //color space RGB
 PdfSeparationColorSpace cs = new PdfSeparationColorSpace("MySpotColor", new PdfRGBColor(c.R, c.G, c.B));
 //color space CMYK
 PdfSeparationColorSpace cs = new PdfSeparationColorSpace("MySpotColor", new PdfRGBColor(c.C, c.M, c.Y, c.K));
 //color space Grayscale
 PdfSeparationColorSpace cs = new PdfSeparationColorSpace("MySpotColor", new PdfRGBColor(c.Gray));
 
 PdfSeparationColor color = new PdfSeparationColor(cs, 1f);
 PdfSolidBrush brush = new PdfSolidBrush(color);
 page.Canvas.DrawPie(brush, 10, 30, 60, 60, 360, 360);
 page.Canvas.DrawString("Tint=1.0", new PdfFont(PdfFontFamily.Helvetica, 10f), brush, new PointF(22, 100));
 color = new PdfSeparationColor(cs, 0.5f);
 brush = new PdfSolidBrush(color);
 page.Canvas.DrawPie(brush, 80, 30, 60, 60, 360, 360);
 page.Canvas.DrawString("Tint=0.5", new PdfFont(PdfFontFamily.Helvetica, 10f), brush, new PointF(92, 100));
 color = new PdfSeparationColor(cs, 0.25f);
 brush = new PdfSolidBrush(color);
 page.Canvas.DrawPie(brush, 150, 30, 60, 60, 360, 360);
 page.Canvas.DrawString("Tint=0.25", new PdfFont(PdfFontFamily.Helvetica, 10f), brush, new PointF(162, 100));
 pdf.SaveToFile("SpotColorrgb.pdf");
New featureSPIREPDF-5705Adds TextCompressionOptions to support setting compression type.
PdfCompressor compressor = new PdfCompressor(fileName);
compressor.Options.TextCompressionOptions.UnembedFonts = true;
compressor.CompressToFIle(outputName);
New featureSPIREPDF-5733Supports setting the text alignment type for PdfFreeTextAnnotation.
RectangleF rect = new RectangleF(x, y, 100, 15);
PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(rect);
TextAlignment(textAnnotation);
textAnnotation.TextAlignment = PdfAnnotationTextAlignment.Right;
New featureSPIREPDF-5735Supports saving to stream after compressing the PDF file.
using (FileStream fileStream = new FileStream(outputFile, FileMode.Create))
{
    PdfCompressor compressor = new PdfCompressor(inputFile);
    compressor.CompressToStream(fileStream);
    fileStream.Flush();
    fileStream.Close();
}
BugSPIREPDF-5713Fixes the issue that the content was incorrect after printing a PDF file.
BugSPIREPDF-5740Fixes the issue that the content was an offset to the bottom right after printing a PDF file.
BugSPIREPDF-5741Fixes the issue that the checkbox checked value didn't display when opening the output PDF with PDF-XChange.
BugSPIREPDF-5745Fixes the issue that the RadioButton field value lost after flattening the PDF forms.
BugSPIREPDF-5754Fixes the issue that the RadioButton field value was incorrect after flattening the PDF forms.
BugSPIREPDF-5386Optimizes the time consumption when converting PDF to Excel.
BugSPIREPDF-5511Fixes the issue that it failed to display the added text annotation in WPS software.
BugSPIREPDF-5659Fixes the issue that the time consumption of converting two pages with same content to image differs a lot.
BugSPIREPDF-5660Fixes the issue that the invisible lines became visible after converting XPS to PDF.
BugSPIREPDF-5677Fixes the issue that caused incorrect format after extracting text from PDF pages.
BugSPIREPDF-5697Fixes the issue that getting the Destination of bookmark returned incorrect data.
BugSPIREPDF-5726Fixes the issue that the application threw the "ArgumentException" when converting Pdf to image.
Spire.XLS
CategoryIDDescription
New featureSPIREXLS-4405Supports setting the Boolean value of addQuotationForStringValue to make the result strings have quotation marks after converting Excel to CSV.
Workbook workbook = new Workbook();
workbook.LoadFromFile(@"ToCSV.xlsx");
Worksheet sheet = workbook.Worksheets[0];
//The last parameter " true" makes the result strings have quotation marks
sheet.SaveToFile(@"ToCSV.csv", ",",true);
New featureSPIREXLS-4422Supports running "what if analysis" goal seek.
Workbook book = new Workbook();
book.LoadFromFile(inputFile);
Worksheet sheet = book.Worksheets[0];
CellRange targetCell = sheet.Range["E2"];
CellRange gussCell = sheet.Range["B4"];
GoalSeek goalSeek = new GoalSeek();
GoalSeekResult result= goalSeek.TryCalculate (targetCell, 2000, gussCell);
result.Determine();
New featureSPIREXLS-4386Supports the FLOOR.MATH formula.
Workbook workbook = new Workbook();
workbook.Worksheets[0].Range["A1"].Formula = "FLOOR.MATH(12.758,2,-1)";
workbook.CalculateAllValue();
workbook.SaveToFile("result.xlsx");
BugSPIREXLS-3469Fixes the issue that the fonts changed after converting an Excel file to PDF.
BugSPIREXLS-4367Fixes the issue that the values were incorrect after referencing the external data source.
BugSPIREXLS-4402Fixes the issue that the content format was incorrect after converting an Excel file to PDF.
BugSPIREXLS-4403Fixes the issue that the content format was incorrect after converting Excel files to images with netstandard dlls.
BugSPIREXLS-4407Fixes the issue that the Conditional Format range was incorrect after invoking DeleteRange() method.
BugSPIREXLS-4412Fixes the issue that it didn't take effect to set IsTextWrapped for chart data label.
BugSPIREXLS-4420Fixes the issue that the application threw "OutOfMemoryError" when converting an Excel file to PDF.
BugSPIREXLS-4424Fixes the issue that the obtained background color of the cell range was incorrect.
BugSPIREXLS-4413Fixes the issue that it didn't take effect to invoke workbook.IsSaved.
Spire.Presentation
CategoryIDDescription
BugSPIREPPT-2153Fixes the issue that the memory failed to release when the PowerPoint to image conversion program ended.
Spire.Barcode
CategoryIDDescription
BugSPIREBARCODE-235Fixes the issue that the QR code position is incorrect when setting UseHttpHandlerMode="True" in an ASP web application.

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/352413.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

每天10个前端小知识 【Day 16】

👩 个人主页:不爱吃糖的程序媛 🙋‍♂️ 作者简介:前端领域新星创作者、CSDN内容合伙人,专注于前端各领域技术,成长的路上共同学习共同进步,一起加油呀! ✨系列专栏:前端…

【老王读Spring Transaction-6】spring-tx与DataSource连接池整合的原理

06spring-tx与DataSource连接池的原理前言Spring 版本正文事物连接: Spring-managed transactional Connectionsspring-tx 与 DataSource 的整合SpringBoot 默认使用的 DataSource 连接池是 Hikari事物连接的关闭/释放: 并不是真正的关闭小结前言 javax.sql.DataSource 是 jav…

2月,还是不要跳槽

新年已经过去,马上就到金三银四跳槽季了,一些不满现状,被外界的“高薪”“好福利”吸引的人,一般就在这时候毅然决然地跳槽了。 在此展示一套学习笔记 / 面试手册,年后跳槽的朋友可以好好刷一刷,还是挺有必…

十四、vue3项目如何使用three.js

近期在开发过程中,因为项目已经接近尾声,就需要对项目中的数据进行整合,而数据看板不失为一个比较直观的展现形式。在数据看板中3D的展现形式是比较流行的展现形式,那么如何在项目引入一个大的场景,并且能够和后台发生…

【NGINX入门指北】Nginx Web 架构实验

Nginx Web 架构实验 文章目录Nginx Web 架构实验一、动态网站结构二、LNMP 动态网站环境部署三、fastcgi & php-fpm:四、php-fpm初始化配置五、Nginx Location、六、Nginx Rewrite七、CA&HTTPS八、Nginx 的平滑升级一、动态网站结构 资源 资源文件识别——…

数据结构---时间复杂度

专栏:数据结构 个人主页:HaiFan. 专栏简介:开学数据结构,接下来会慢慢坑新数据结构的内容!!!! 时间复杂度前言1.算法效率1.1如何衡量一个算法的好坏1.2算法的复杂度2.时间复杂度2.1大…

Leetcode力扣秋招刷题路-0073

从0开始的秋招刷题路,记录下所刷每道题的题解,帮助自己回顾总结 73. 矩阵置零 给定一个 m x n 的矩阵,如果一个元素为 0 ,则将其所在行和列的所有元素都设为 0 。请使用 原地 算法。 示例 1: 输入:mat…

Seata1.5.2安装配置(nacos)+部署

一、seata服务端下载,下载方式介绍两种入口,如下: 1. seata官网 (http://seata.io/zh-cn/blog/download.html) 下载中心 找到对应版本,下载 binary 即可。 下载包名为:seata-server-1.5.2.zip 2. github上下载 Rel…

HIVE 基础(一)

目录 启动hive 方式一 方式二 修改hdfs上给定文件执行的读写权限 创建数据库 查看数据库 查看数据库详细信息 查看当前数据库 创建表 查看建表语句 查看表信息 删除表 添加数据 查看表数据 删除数据库 强制删除数据库 启动hive 方式一 [roothadoop1 ~]# hive 方…

遥感数字图像处理

遥感数字图像处理 来源:慕课北京师范大学朱文泉老师的课程 遥感应用:遥感制图、信息提取 短期内了解知识结构–>有选择的剖析经典算法原理–>系统化知识结构、并尝试实践应用 跳出算法(尤其是数学公式) 关注原理及解决问…

PowerShell中的对象是神马?

在PowerShell中,无处不在体现出一个概念,这个概念是什么呢?就是对象,对象是面向对象的语言中非常重要的概念,PowerShell的底层是.net,也是面向对象的语言,因此它也继承了面向对象的语言的语法特性。但是很多人在使用PowerShell 语言的时候会觉得有些疑惑,到底什么是Pow…

PCB学习笔记——使用嘉立创在线绘制原理图与PCB

嘉立创软件地址:https://lceda.cn/ 新建工程-新建原理图,在元件库中可以搜索元器件,可以直接放置在原理图上。 原理图绘制完成后,保存文件,设计-原理图转PCB,可以直接生成对应的PCB,设置边框&…

2023美赛 MCM C题 预测结果

背景Wordle是《纽约时报》 目前每天提供的一个流行的谜题。玩家试图通过六次或更少的时间猜 测一个五个字母的单词来解决谜题,每次猜测都会得到反馈。对于这个版本,每个猜测都必 须是一个真实的英语单词。不被比赛认定为文字的猜测是不允许的。Wordle越来…

数影周报:据传国内45亿条快递数据泄露,聆心智能完成Pre-A轮融资

本周看点:据传国内45亿条快递数据泄露;消息称微软解雇150 名云服务销售;消息称TikTok计划在欧洲再开两个数据中心;衣服长时间放购物车被淘宝客服嘲讽;聆心智能完成Pre-A轮融资......数据安全那些事据传国内45亿条快递数…

Centos7 调整磁盘空间

1. 查看磁盘空间占用情况: df -h 可以看到 /home 有很多剩余空间,占了绝大部分, 而我又很少把文件放在home下。 2. 备份 /home 下的内容: cp -r /home/ /homebak/ 3. 关闭home进程: fuser -m -v -i -k /home 报错: -bash: fuser…

C语言编程里的原码, 反码, 补码 你搞懂了吗?

一、机器数和真值 在学习原码, 反码和补码之前, 需要先了解机器数和真值的概念. 1、机器数 一个数在计算机中的二进制表示形式, 叫做这个数的机器数。机器数是带符号的,在计算机用一个数的最高位存放符号, 正数为0, 负数为1. 比如,十进制中的数 3 &…

人脸检测的5种方式

文章内容: 1)人脸检测的5种方法 1. Haar cascade opencv 2. HOG Dlib 3. CNN Dlib 4. SSD 5. MTCNN 一。人脸检测的5种方法实现 1. Haar cascade opencv Haar是专门用来检测边缘特征的。基本流程如下: 第1步,读取图片 img …

学生党必备的 Keychron 无线机械键盘

学生党必备的 Keychron 无线机械键盘 由于专业需要,之间的键盘使用起来不太舒服,于是准备重新买一个适合工作学习的键盘,于是通过朋友介绍了解到了keychron k3pro,当时也看到网上一些资料说道这款键盘比较到位,今天就来带大家了解…

面试题整理01-集合详解

文章目录前言一、集合的整体结构单列集合接口:双列集合接口:二、单列集合详解1.List接口1.1 ArrayList集合特点:扩容:添加元素遍历1.2 LinkedList集合特点:添加元素:2.Set接口2.1 HashSet集合特点&#xff…

企业维基都说好,今天我们来看看 wiki 软件的缺点有哪些?

企业维基企业wiki和内部知识库可能看起来是一回事——但它们实际上是非常不同的软件类型。也许您可能不知道你在寻找的是知识基础软件,还是wiki软件。 无论哪种方式,缺乏知识都是生产力的巨大瓶颈。事实上,未能分享知识是财富500强企业每年亏…