Spire.Office 8.4.0 已发布。在该版本中,Spire.Doc 支持设置线条的类型(dashed/dotted),以及Docx2016和Docx2019文件格式;Spire.PDF 支持文本表单域的字体大小自动设置;Spire.Email 修复了读取的邮件日期信息不正确的问题。此外,该版本还成功修复了许多已知问题。详情请阅读以下内容。
该版本涵盖了最新版的 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 v11.4.0
- Spire.Pdf.dll v9.4.0
- Spire.XLS.dll v13.4.0
- Spire.Presentation.dll v8.3.2
- Spire.Email.dll v6.3.2
- Spire.DocViewer.Forms.dll v8.3.0
- Spire.PdfViewer.Forms.dll v7.10.0
- Spire.PdfViewer.Asp.dll v7.10.0
- Spire.Spreadsheet.dll v7.4.1
- Spire.OfficeViewer.Forms.dll v8.4.0
- Spire.Barcode.dll v7.2.1
- Spire.DataExport.dll v4.8.0
- Spire.DataExport.ResourceMgr.dll v2.1.0
https://www.e-iceblue.cn/Downloads/Spire-Office-NET.html
Spire.Doc
新功能:
- 支持了设置线条的类型(dashed/dotted)。
- 文件格式支持了Docx2016和Docx2019。
Document doc = new Document();
Section sec = doc.AddSection();
Paragraph para1 = sec.AddParagraph();
ShapeObject shape1 = para1.AppendShape(100, 100, ShapeType.Line);
shape1.FillColor = Color.Purple;
shape1.StrokeColor = Color.Black;
shape1.LineStyle = ShapeLineStyle.Single;
shape1.LineDashing = LineDashing.Dash;
doc.SaveToFile("InsertShapes.docx", Spire.Doc.FileFormat.Docx2013);
Spire.Doc.FileFormat.Docx2016
Spire.Doc.FileFormat.Docx2019
问题修复:
- 修复了转换Word文档到PDF时内容错位的问题。
- 修复了转换Word文档到PDF时表格内容丢失的问题。
- 修复了将文档A内容复制到文档B里面后表格样式错误的问题。
- 修复了转换Word到PDF时分页不正确的问题。
- 修复了转换Word到PDF时页眉内容不正确的问题。
- 修复了转换Word到PDF时程序抛出System.IndexOutOfRangeException的问题。
- 修复了合并Word文档时程序抛出System.ArgumentException的问题。
Spire.PDF
新功能:
- 支持文本表单域的字体大小自动设置。
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile(input);
PdfFormWidget formWidget = pdf.Form as PdfFormWidget;
foreach(PdfField field in formWidget.FieldsWidget.List)
{
if(field is PdfTextBoxFieldWidget)
{
PdfTextBoxFieldWidget textBoxField = field as PdfTextBoxFieldWidget;
if(textBoxField.Name == "Name of the Company")
{
textBoxField.Font = new PdfTrueTypeFont(new Font("Arial", 16), true);
textBoxField.FontSizeAuto = true;
textBoxField.Text = "e-iceblue";
}
}
}
pdf.SaveToFile(output);
问题修复:
- 修复了替换文本后内容出现重叠的问题。
- 修复了设置自适应字体的文本效果不正确的问题 。
- 修复了转换出的OFD文件用金锐OFD阅读器和超阅OFD阅读器打开查看内容空白的问题。
- 修复了转换PDF到图片时内存溢出的问题。
- 修复了转换OFD到PDF时图章不正确的问题。
- 修复了转换PDF到图片时程序抛出AccessViolationException异常的问题 。
- 修复了获取新增元数据的值为null的问题。
- 修复了PdfTrueTypeFont对象内存释放机制存在的问题。
- 修复了转换OFD到PDF时程序抛出System.IndexOutOfRangeException异常的问题。
- 修复了转换PDF到图片时颜色渲染不正确的问题。
- 修复了PdfCheckBoxWidgetFieldWidget中的checked属性失效的问题。
- 修复了转换PDF到图片时里面的图片内容丢失的问题。
- 修复了在银河麒麟ARM系统提取PDF文本时程序抛System.NullPointerException异常的问题。
Spire.Email
问题修复:
- 修复了读取的邮件日期信息不正确的问题。