Spire.Office 6.4.2已发布。本次更新带来一些新的功能,比如:Spire.PDF支持根据图片的位置删除图片,并新增设置Check Box Field的导出值的功能。同时,该版本还修复了大量已知问题。详情请阅读以下内容。
该版本涵盖了最新版的Spire.Doc, Spire.PDF, Spire.XLS, Spire.Presentation, Spire.Email, Spire.DocViewer, Spire.PDFViewer, Spire.Spreadsheet, Spire.OfficeViewer, Spire.DataExport, Spire.Barcode。
版本信息如下:
- Spire.Doc.dll v9.4.12
- Spire.Pdf.dll v7.4.5
- Spire.XLS.dll v11.4.2
- Spire.Email.dll v4.1.2
- Spire.DocViewer.Forms.dll v6.1.0
- Spire.PdfViewer.Forms.dll v6.3.2
- Spire.PdfViewer.Asp.dll v6.3.2
- Spire.Presentation.dll v6.4.1
- Spire.Spreadsheet v5.4.0
- Spire.OfficeViewer.Forms.dll v6.4.2
- Spire.Barcode.dll v5.4.0
- Spire.DataExport.dll v4.1.9
- Spire.DataExport.ResourceMgr.dll v2.1.0
- Spire.License.dll v1.3.8
https://www.e-iceblue.cn/Downloads/Spire-Office-NET.html
Spire.Doc
问题修复:
- 修复了给图片添加题注位置不正确的问题
- 修复了转换Word到PDF,内容不正确的问题
- 修复了转换Word到PDF,程序挂起的问题
- 修复了转换Word到PDF,抛异常“System.IndexOutOfRangeException”的问题
- 修复了提取文本内容不正确的问题
- 修复了更新域不正确的问题
- 修复了转换Word到PDF抛异常“System.ArgumentOutOfRangeException”的问题
- 修复了转换Word到PDF,中文字符页码变成数字页码的问题
- 修复了转换Word到PDF,eq域显示不正确的问题
- 修复了转换Word到PDF,水印位置不正确的问题
- 修复了目录没有正确更新的问题
- 修复了添加的目录内容不正确的问题
- 修复了无法获取ComboBox的选择值的问题
- 修复了转换Word到PDF,程序抛异常“OutOfMemoryException”的问题
- 修复了转换Word到PDF,程序抛异常“尝试除以零”的问题
- 修复了转换Word到PDF,边框丢失的问题
- 修复了转换Word到PDF流,程序挂起的问题
- 支持根据图片的位置删除图片
Spire.PDF
新功能:
PdfDocument doc = new PdfDocument(input);
PdfPageBase page = doc.Pages[0];
PdfImageInfo[] images = page.ImagesInfo;
for (int i = 0; i < images.Length; i++)
{
if (images[i].Bounds.Contains(x, y))
//if (images[i].Bounds.IntersectsWith(new RectangleF(x, y, width, height)))
{
page.DeleteImage(images[i].Image);
}
}
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile(inputFile);
PdfPageBase page = pdf.Pages[0];
PdfFormWidget formWidget = pdf.Form as PdfFormWidget;
int count = 1;
foreach (PdfFieldWidget field in formWidget.FieldsWidget)
{
if (field is PdfCheckBoxWidgetFieldWidget)
{ PdfCheckBoxWidgetFieldWidget checkbox = field as PdfCheckBoxWidgetFieldWidget; checkbox.SetExportValue("True" + (count++)); }
}
pdf.SaveToFile(outputFile, FileFormat.PDF);
问题修复:
- 修复了转换PDF到图片,文本重叠的问题
- 修复了无法添加Button Field的问题
- 修复了提取图片失败的问题
- 修复了PDF打印结果不正确的问题
- 修复了打印含透明背景图片的PDF结果不正确的问题
- 修复了压缩PDF,结果文档打开报错的问题
- 修复了无法获取Pdf/A-3A文档的Conformance的问题
- 修复了转换PDF到流式排版的Word文档,内容不正确的问题
- 修复了转换PDF到PDF/A-3A,结果文档打开报错的问题
- 修复了填充Text Box Field,结果文档的字体被改变的问题
- 修复了提取书签名称,结果不正确的问题
- 修复了合并PDF,抛异常“Object reference not set to an instance of an object”的问题
- 修复了转换PDF到Excel,单元格未正确合并的问题
- 修复了提取文本抛异常“Object reference not set to an instance of an object”的问题
- 修复了转换PDF到TIFF,文本丢失的问题
- 修复了添加数字签名时间戳,抛异常“CryptographicException”的问题
- 修复了设置背景图片抛异常“System.StackOverflowException”的问题
- 修复了转换PDF到图片,内容不正确的问题
- 修复了删除图片抛异常“System.OutOfMemoryException”的问题
- 修复了转换PDF到Word,注解丢失的问题
- 修复了调用“CreateTemplate”方法抛异常“Object reference not set to an instance of an object”的问题
- 修复了绘制表格抛异常“can not draw table, because there is no enough space for it”的问题
- 修复了修改自定义属性后结果文档不正确的问题
- 修复了合并PDF后书签跳转位置不正确的问题
- 修复了添加数字签名时间戳,抛异常“System.NullReferenceException”的问题
Spire.XLS
问题修复:
- 修复了转换Excel到PDF时程序抛异常“Invalid section Id of Header Footer image”的问题
- 修复了转换XLSM到PDF时程序抛异常“Invalid cell name”的问题
- 修复了保存后的文档添加新的sheet,生成的结果文档用微软Excel工具打开提示文档格式无效的问题
- 修复了获取行高不正确的问题
- 修复了设置“1.0 / 0.0”数据来创建Line图表,生成的结果文档用微软Excel工具打开提示有内容存在错误的问题
- 修复了设置excel中的图表数据时程序抛异常'The number of series could not exceed 65535.'的问题
- 修复了在Mac系统中转换Excel到PDF时程序抛异常“Cannot find font installed on the system”的问题
- 修复了设置页眉图片时程序抛异常“Value cannot be null”的问题
- 修复了转换Excel到PDF时日期格式不正确问题
- 修复了转换Excel到图片时图表数据不正确的问题
- 修复了转换Excel到图片时内容不清晰的问题
- 修复了设置的日期数据格式在微软Excel显示不正确的问题