Spire.Office 8.2.2 for NET 开年之喜
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 | ||
| Category | ID | Description |
| New feature | SPIREPDF-5132 | Supports 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 feature | SPIREPDF-5705 | Adds TextCompressionOptions to support setting compression type. |
| PdfCompressor compressor = new PdfCompressor(fileName); | ||
| compressor.Options.TextCompressionOptions.UnembedFonts = true; | ||
| compressor.CompressToFIle(outputName); | ||
| New feature | SPIREPDF-5733 | Supports 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 feature | SPIREPDF-5735 | Supports 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(); | ||
| } | ||
| Bug | SPIREPDF-5713 | Fixes the issue that the content was incorrect after printing a PDF file. |
| Bug | SPIREPDF-5740 | Fixes the issue that the content was an offset to the bottom right after printing a PDF file. |
| Bug | SPIREPDF-5741 | Fixes the issue that the checkbox checked value didn't display when opening the output PDF with PDF-XChange. |
| Bug | SPIREPDF-5745 | Fixes the issue that the RadioButton field value lost after flattening the PDF forms. |
| Bug | SPIREPDF-5754 | Fixes the issue that the RadioButton field value was incorrect after flattening the PDF forms. |
| Bug | SPIREPDF-5386 | Optimizes the time consumption when converting PDF to Excel. |
| Bug | SPIREPDF-5511 | Fixes the issue that it failed to display the added text annotation in WPS software. |
| Bug | SPIREPDF-5659 | Fixes the issue that the time consumption of converting two pages with same content to image differs a lot. |
| Bug | SPIREPDF-5660 | Fixes the issue that the invisible lines became visible after converting XPS to PDF. |
| Bug | SPIREPDF-5677 | Fixes the issue that caused incorrect format after extracting text from PDF pages. |
| Bug | SPIREPDF-5697 | Fixes the issue that getting the Destination of bookmark returned incorrect data. |
| Bug | SPIREPDF-5726 | Fixes the issue that the application threw the "ArgumentException" when converting Pdf to image. |
| Spire.XLS | ||
| Category | ID | Description |
| New feature | SPIREXLS-4405 | Supports 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 feature | SPIREXLS-4422 | Supports 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 feature | SPIREXLS-4386 | Supports 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"); | ||
| Bug | SPIREXLS-3469 | Fixes the issue that the fonts changed after converting an Excel file to PDF. |
| Bug | SPIREXLS-4367 | Fixes the issue that the values were incorrect after referencing the external data source. |
| Bug | SPIREXLS-4402 | Fixes the issue that the content format was incorrect after converting an Excel file to PDF. |
| Bug | SPIREXLS-4403 | Fixes the issue that the content format was incorrect after converting Excel files to images with netstandard dlls. |
| Bug | SPIREXLS-4407 | Fixes the issue that the Conditional Format range was incorrect after invoking DeleteRange() method. |
| Bug | SPIREXLS-4412 | Fixes the issue that it didn't take effect to set IsTextWrapped for chart data label. |
| Bug | SPIREXLS-4420 | Fixes the issue that the application threw "OutOfMemoryError" when converting an Excel file to PDF. |
| Bug | SPIREXLS-4424 | Fixes the issue that the obtained background color of the cell range was incorrect. |
| Bug | SPIREXLS-4413 | Fixes the issue that it didn't take effect to invoke workbook.IsSaved. |
| Spire.Presentation | ||
| Category | ID | Description |
| Bug | SPIREPPT-2153 | Fixes the issue that the memory failed to release when the PowerPoint to image conversion program ended. |
| Spire.Barcode | ||
| Category | ID | Description |
| Bug | SPIREBARCODE-235 | Fixes the issue that the QR code position is incorrect when setting UseHttpHandlerMode="True" in an ASP web application. |
相关文章:
Spire.Office 8.2.2 for NET 开年之喜
Spire.Office for .NET对文档的操作包括打开,创建,修改,转换,打印,浏览 Word、Excel、PowerPoint 和 PDF 文档,以及将数据从数据源导出为常用的文档格式,如:Word,Excel&a…...
python中的.nc文件处理 | 04 利用矢量边界提取NC数据
利用矢量边界提取.nc数据 import osimport numpy as np import pandas as pd import matplotlib.pyplot as plt import cartopy.crs as ccrs import cartopy.feature as cfeature import seaborn as sns import geopandas as gpd import earthpy as et import xarray as xr # …...
使用 PyNeuraLogic 超越 Transformers
展示神经符号编程的力量neuro-symbolic1. 简介 在过去的几年里,我们看到了基于 Transformer 的模型的兴起,并在自然语言处理或计算机视觉等许多领域取得了成功的应用。在本文[1]中,我们将探索一种简洁、可解释和可扩展的方式来表达深度学习模…...
微信点金计划(服务商角度)
时间:2023/2/17 背景:微信在推出点金计划后,原本window.WeixinJSBridge.invoke方法的回调失效了,需要在微信支付服务商平台|平台开放更多能力,与服务商一起成长这里进行配置,配置流程跟着官方给…...
2023年美赛 MCM B题 重新构想马赛马拉岛
背景肯尼亚的野生动物保护区最初主要是为了保护野生动物和其他自然资源。肯尼亚议会于2013 年通过了《野生动物保护和管理法》,以提供更公平的资源共享,并允许进行替代的、以社 区为基础的管理工作[1].此后,肯尼亚增加了修正案,以…...
指标体系的应用与搭建
一、指标体系的介绍 体系泛指一定范围内同类事物按照一定的顺序或内在联系而组成的整体。指标体系也一样,指的是不同指标按照一定的顺序及内部联系而组成的整体。此外,在指标体系中,除了以应用为出发点搭建,还会加入使用指南&…...
固态继电器的五大优势
固态继电器的优点和五个关键优势,现代电气控制系统因二极管、晶体管和晶闸管等固态器件的发明而得到极大的增强。对于加热器和电机等大负载设备,固态继电器可能比传统的机械继电器具有巨大的优势。 虽然并非适用于所有情况,但它们具有许多吸引…...
特征检测之HOG特征算法详解及Opencv接口使用
1. HOG特征简介 特征描述符是图像或图像补丁的表示形式,它通过提取有用信息并丢弃无关信息来简化图像。 通常,特征描述符将大小W x H x 3(通道)的图像转换为长度为n的特征向量/数组。对于 HOG 特征描述符,输入图像的…...
一款好的低代码开发平台应该是什么样?
一款好的低代码开发平台应该是什么样? 以企业级应用构建来讲,完成一个应用复杂度随着技术的进步、需求的细化、业务要求的变化并不是逐渐降低,而是逐渐提升。用户想要有更好的体验,复杂度更是成倍提升。 基于此,低代码…...
基于Spring cloud搭建oauth2
1,OAuth2.0简介 OAuth(开发授权)是一个开放标准,允许用户授权第三方应用访问他们存储在另外的服务提供者上的信息,而不需要将用户名和密码提供给第三方应用或分享他们数据的所有内容。 OAuth2.0是OAuth的延续…...
实现一个小程序分享图 wxml2canvas
我们经常会遇上动态生成海报的需求,而在小程序中,生成图片非Canvas莫属。但是在实际工作当中,为了追求效率,我们会不可避免地去使用一些JS插件,而 wxml-to-canvas 就是一款官方推荐且非常优秀的插件,它可以…...
基于matlab设计x波段机载SAR系统
一、前言此示例说明如何设计在 X 波段工作的合成孔径雷达 (SAR) 传感器并计算传感器参数。SAR利用雷达天线在目标区域上的运动来提供目标区域的图像。当SAR平台在目标区域上空行进时,当脉冲从雷达天线发送和接收时,会产生合成孔径…...
WPF学习:Slider — 冒泡显示值
想做一个下图所示的Slider,以冒泡的方式显示其Value值,该怎么做呢? 功能要求,当鼠标放在滑块上的时候,冒“泡”显示值;当滑块移动的时候,“泡”跟随移动。 看似简单的功能,但要完美…...
Vue实战第4章:主页设计之中部内容设计
前言 本篇在讲什么 接上篇文章,我们制作了一个自定义的网页导航栏,本篇文章我们简单制作一个内容页 仅介绍简单的应用,仅供参考 本篇适合什么 适合初学Vue的小白 适合想要自己搭建网站的新手 适合没有接触过vue-router的前端程序 本篇…...
数据结构代码总结(C语言实现)
目录如何应对数据结构的代码题?采取的学习流程①首先对C语言的语法的熟悉②学习掌握基本代码的写法,做到熟练2.1插入排序2.2快速排序2.3二分查找2.4树的遍历③跟着网上视频开始熟悉对一些问题的解答④结合真题的代码,寻找其中的结题规律如何应…...
zookeeper 复习 ---- chapter04
zookeeper 复习 ---- chapter04zookeeper 的精髓是什么? 1:它有四个节点类型 持久无序的节点 临时无序的节点 持久有序的节点 临时有序的节点 临时的节点的特征:当客户端和服务器端断开连接,当前客户端创建的节点被服务器端自动删…...
thinkphp6.0连接MYSQL
目录8.连接多个数据库7.多级控制器不存在6.分页5.非法请求4.关于路由**3.初体验页面****2.加入fileheader添加注释****1.配置mysql0. 官方开发手册一些网址 http://127.0.0.1:8000/index 原桌面 http://127.0.0.1:8000/hello/fsh hello,fsh(index中hello方法&#x…...
商家必读!超店有数分享,tiktok达人营销变现如何更快一步?
近几年来,“粉丝经济”发展越来越迅猛,“网红带货”已经成为了一种营销的方式。这种方式让商家能基于达人的影响下迅速抢占自己的私域流量池。消费者会基于对达人的信任,购买达人推荐的产品。达人效应可以助力品牌走出营销困境。如果商家想要…...
操作系统(day11)--快表,两级页表
具有快表的地址变换机构 时间局限性:会有大量连续的指令需要访问同一个内存块的数据的情况(程序中的循环) 空间局限性:一旦程序访问了某个存储单元,在不久之后,其附近的存储单元也很有可能被访问。…...
预告| 亮点抢先看!第四届OpenI/O启智开发者大会主论坛24日启幕!
2023年2月24日至25日,第四届OpenI/O启智开发者大会将在深圳隆重举行。“算网筑基、开源启智、AI赋能”作为今年大会的主题,吸引了全球业界关注的目光。大会集结中国算力网资源基座、开源社区治理及AI开源生态建设、国家级开放创新应用平台、NLP大模型等前…...
COA - CNN - BiGRU - Attention分类:新手友好的数据预测方案
COA-CNN-BiGRU-Attention分类 基于浣熊优化算法优化卷积神经网络(CNN)-双向门控循环单元(BGRU)结合注意力机制(Attention)的数据分类预测(可更换为回归/单变量/多变量时序预测,前私),Matlab代码,可直接运行,适合小白新手 无需更改…...
关于腾讯广告算法大赛2025项目分析1 - dataset.py
把原始 jsonl 用户行为序列,转成模型能直接吃的张量tensor和特征字典 一、整体定位 MyDataset 读取训练数据,产出: 用户序列 seq正样本 pos负样本 negtoken 类型各类特征时间特征相关原始时间戳 MyTestDataset 读取测试/推理数据,产出 用户序…...
统信UOS 1060e内网离线安装Docker保姆级教程(附CentOS 8 RPM包下载)
统信UOS 1060e内网离线安装Docker全流程实战指南 在企业级IT基础设施中,内网环境下的软件部署一直是运维工程师面临的特殊挑战。当服务器完全隔离于互联网时,每一个依赖包、每一条配置指令都可能成为阻碍系统正常运行的潜在障碍。本文将深入探讨在统信UO…...
在RK3576开发板上手把手编译并运行你的第一个MPP编码程序(含VSCode配置避坑)
在RK3576开发板上从零构建MPP编码开发环境的完整指南 1. 开发环境准备与交叉编译工具链配置 对于嵌入式开发者而言,RK3576开发板的MPP开发环境搭建需要从基础工具链开始。不同于x86平台的开发,我们需要特别注意交叉编译环境的配置细节。 首先需要获取适用…...
Android音频输出流实战:从AudioFlinger到HAL层的完整调用链解析
Android音频输出流深度解析:从框架设计到硬件交互 1. Android音频系统架构概览 Android音频子系统采用分层设计,每一层都有明确的职责划分。理解这个架构是分析音频输出流的基础。 核心层级结构: 应用层:通过AudioTrack、MediaPla…...
别再手动对齐了!Excel双坐标折线图保姆级教程,5分钟搞定销售与成本对比分析
Excel双坐标折线图实战:销售与成本可视化分析的进阶技巧 当市场专员小林第一次尝试将季度销售额(单位:万元)和成本率(单位:百分比)放在同一张图表时,她发现了一个尴尬的现象——代表…...
Axure RP 10实战:3分钟搞定Tab切换效果(附交互样式设置技巧)
Axure RP 10高级Tab切换效果:从基础实现到专业级交互设计 在当今快节奏的数字化产品设计领域,Tab切换作为最常见的用户界面元素之一,其交互体验的优劣直接影响用户对产品的第一印象。Axure RP 10作为行业领先的原型设计工具,提供了…...
LangGraph 工作流实战:Few-Shot提示赋能大模型精准调用自定义计算工具
1. 为什么需要Few-Shot提示赋能工具调用? 大模型在通用任务上表现惊艳,但遇到需要精确调用自定义工具的场景时,常常会出现"知道但不会用"的情况。比如让GPT-4计算"3172531284724",它可能直接输出错误答案而非…...
告别Charles/Fiddler抓包失败:用Magisk TrustUserCerts模块搞定安卓HTTPS拦截
安卓HTTPS抓包全攻略:从Magisk证书安装到防御绕过实战 移动应用安全测试中,HTTPS流量拦截是基础却关键的环节。随着Android系统安全机制的不断升级,传统的抓包方法在Android 7.0及更高版本上频频失效。本文将系统性地介绍基于Magisk的解决方案…...
STM32F103C8T6与HC05蓝牙模块实战:手机APP控制OLED显示(附完整代码)
STM32F103C8T6与HC05蓝牙模块实战:手机APP控制OLED显示(附完整代码) 1. 项目概述与硬件准备 在物联网终端设备交互场景中,蓝牙通信因其低功耗、低成本的特点成为短距离无线传输的理想选择。本项目基于STM32F103C8T6微控制器与HC05…...
