It's all dry goods! Document control aspose.words function inventory

Aspose.Words is a high-level Word document processing API for performing various document management and manipulation tasks. The API supports generating, modifying, converting, rendering and printing documents without using Microsoft Word directly in the cross-platform application.

Aspose API supports popular file format processing and allows exporting or converting various types of documents to fixed layout file formats and most commonly used image/multimedia formats.

Aspose.Words for .NET latest download

Aspose.Words provides users with a wide range of features. Users can perform a large number of document-related tasks—from simply converting documents from one supported format to another and modifying those documents in the process, to business tasks such as creating structured and visually appealing documents or automated reports.

Modern document formats and standards are complex, and when you need document conversion or other document processing functionality in your project, the only practical solution is often to rely on third-party components that implement the required functionality. But using third-party components always comes with some risks. A unique risk in document processing is the question of how fully and correctly a library implements a particular document format or standard.

Aspose is committed to providing the most complete and accurate documentation format and implementation of standards. The Aspose.Words team has demonstrated their commitment to interoperability by providing detailed implementation instructions for supported document formats across multiple platforms.

The table below summarizes and compares the availability of Aspose.Words for .NET features and provides links to detailed feature descriptions.

Platform overview

The platforms that Aspose.Words for .NET can use are listed below. If you need support for more platforms, please look for the "twin brother" product Aspose.Words for Java.

feature describe
.NET Framework Use Aspose.Words for .NET to build ASP.NET, Web Services, WinForms or any other type of application for any .NET Framework 2.0 or later (including Client Profile versions). 32-bit and 64-bit are fully supported.
.NET Standard 2.0 The "netstandard2.0" and "netstandard2.0_AuthenticodeSigned" folders contain assemblies for use with frameworks that implement .NET Standard 2.0 (e.g. .NET Core 2.0/2.1/2.2/3.0/3.1). The latest version of Aspose.Words API also supports .NET 5.0 and .NET 6.0.
Xamarin.Android Use Aspose.Words for .NET in your native Android application.
Xamarin.iOS Use Aspose.Words for .NET in your native iOS applications.
Xamarin.Mac Use Aspose.Words for .NET in your native Mac application.
COM It can be a lifesaver if you must develop using pre-.NET technologies.
Mono You can use Aspose.Words for .NET to build applications with Mono.
Windows Azure Yes, Aspose.Words for .NET runs on Windows Azure.
File Formats and Conversions

Many customers around the world rely on the comprehensive document import and export capabilities provided by Aspose.Words.

feature describe .NET .NET Standard 2.0

Xamarin.

Android

Xamarin

.iOS

Xamarin

.Mac

Microsoft Word - DOC The fastest and most complete implementation of the DOC format you will find. check the box check the box check the box check the box check the box
WordprocessingML - DOCX and XML Aspose.Words provides comprehensive support for OOXML, Flat OPC and Word 2003 XML. check the box check the box check the box check the box check the box
Rich Text Format - RTF Fully supports the RTF format, and can interact with a variety of applications. check the box check the box check the box check the box check the box
HTML, XHTML and MHTML Load and save HTML/XHTML for better interoperability. Save as MHTML is also available. check the box check the box check the box check the box check the box
OpenDocument - ODT Aspose.Words can load and save documents in OpenDocument Text (.odt) format. check the box check the box check the box check the box check the box
Adobe Portable Document Format - PDF Convert any document to PDF with high fidelity. PDF/A is supported. check the box check the box check the box check the box check the box
XML Paper Specification - XPS Convert any document to XPS with high fidelity. check the box check the box check the box check the box check the box
Plain Text - TXT Easily extract text by saving in plain text format. check the box check the box check the box check the box check the box
Digital Publishing EPUB EPUB is a popular e-book format. You can convert any document from Aspose.Words to IDPF EPUB format. check the box check the box check the box check the box check the box
Printer Command Language (PCL) Aspose.Words for .NET supports saving documents in PCL format. check the box check the box check the box check the box check the box
Render and print

Aspose.Words now offers high-fidelity rendering of document pages.

feature .NET .NET Standard 2.0 Xamarin.Android Xamarin.iOS Xamarin.Mac
Lay out documents to high-fidelity pages (just like Microsoft Word®) in all of the following formats. check the box check the box check the box check the box check the box
Render single pages or complete documents to PDF or XPS. check the box check the box check the box check the box check the box
Renders document pages as BMP images check the box check the box      
Renders document pages as images (PNG, EMF, JPEG, GIF). check the box check the box check the box check the box check the box
Renders individual shapes in a document as raster or vector images. check the box check the box check the box check the box check the box
Specify image resolution, quality, compression, and other options. check the box check the box check the box check the box check the box
Renders a page or shape to a transformed .NET graphics object with a specific size. check the box check the box check the box check the box check the box
Prints document pages using the .NET printing infrastructure. check the box        
在呈现或打印之前更新目录、页码和其他字段。 check the box check the box check the box check the box check the box
文件内容特征

Aspose.Words 提供了一个由超过 100 个公共类组成的丰富的对象模型,允许您以编程方式生成、组合、修改、解析或以其他方式检查加载的文档。

特征 .NET .NET 标准 2.0 Xamarin.Android Xamarin.iOS Xamarin.Mac
访问、创建和修改段落和文本。 check the box check the box check the box check the box check the box
访问、创建和修改图像、文本框和形状。 check the box check the box check the box check the box check the box
访问、创建和修改表格、行和单元格。 check the box check the box check the box check the box check the box
访问、创建和修改字段、表单字段、超链接和书签。 check the box check the box check the box check the box check the box
访问、创建和修改文档部分、页眉和页脚。 check the box check the box check the box check the box check the box
访问、创建和修改脚注、尾注和评论。 check the box check the box check the box check the box check the box
访问、创建和修改自定义 XML、智能标签和结构化文档标签(内容控件)。 check the box check the box check the box check the box check the box
使用类似XmlDocument的类和方法访问和修改所有文档元素。 check the box check the box check the box check the box check the box
更新字段结果 IF、公式和其他流行的字段类型。 check the box check the box check the box check the box check the box
完全像 Microsoft Word 一样重建和更新目录 (TOC) 字段。 check the box check the box check the box check the box check the box
在文档之间复制和移动文档元素。 check the box check the box check the box check the box check the box
加入和拆分文档。 check the box check the box check the box check the box check the box
获取和设置内置和自定义文档属性。 check the box check the box check the box check the box check the box
指定文档保护,打开受保护和加密的文档。 check the box check the box check the box check the box check the box
查找和替换文本,枚举文档内容。 check the box check the box check the box check the box check the box
接受文档中的所有修订。 check the box check the box check the box check the box check the box
从文档中保留或提取 OLE 对象和 ActiveX 控件。 check the box check the box check the box check the box check the box
从文档中保留或删除 VBA 宏。保留 VBA 宏数字签名。 check the box check the box check the box check the box check the box
检测和验证文档中的数字签名。 check the box check the box check the box check the box check the box
插入 HTML 文本。 check the box check the box check the box check the box check the box
从 Word 文档中提取 VBA 宏。 check the box check the box
文档格式功能

Aspose.Words 提供对所有文档元素的格式化属性的详细编程访问。

特征 .NET .NET 标准 2.0 Xamarin.Android Xamarin.iOS Xamarin.Mac
访问和修改所有字符格式,包括字体、颜色、效果、边框和阴影。 check the box check the box check the box check the box check the box
访问和修改所有段落格式,包括缩进、间距、边框和阴影、制表位。 check the box check the box check the box check the box check the box
访问和修改所有项目符号和编号列表格式,包括编号和级别。 check the box check the box check the box check the box check the box
访问和修改表格格式,包括对齐方式、方向、边框和阴影。 check the box check the box check the box check the box check the box
访问和修改所有部分属性,包括纸张大小、页边距和方向。 check the box check the box check the box check the box check the box
访问、创建和修改文档样式。 check the box check the box check the box check the box check the box
访问和修改绘图对象,包括位置、大小、线条和填充属性、图像字节。 check the box check the box check the box check the box check the box
邮件合并功能

您可以单独使用 Aspose.Words 作为报告解决方案。在 Microsoft Word 中设计您的报告,然后让 Aspose.Words 使用来自不同数据源的数据填充文档。

特征 .NET .NET 标准 2.0 Xamarin.Android Xamarin.iOS Xamarin.Mac
在您的报告中使用所有标准的 Microsoft Word 邮件合并字段,包括 MERGEFIELD、NEXT、NEXTIF、ADDRESSBLOCK、GREETINGLINE。 check the box check the box check the box check the box check the box
对包含最复杂和嵌套的 IF 字段和公式的文档执行邮件合并。 check the box check the box check the box check the box check the box
使用邮件合并区域从您的数据源填充和动态增长文档中的表格或片段。 check the box check the box check the box check the box check the box
轻松生成包含主从(父子)数据的报告,例如 Order/OrderDetails。 check the box check the box check the box check the box check the box
使用来自任何 .NET 数据源(例如 DataSet、DataTable、DataView、DataReader 或 ADO Recordset)的数据填充文档。 check the box check the box check the box check the box check the box
通过实施IMailMergeDataSource接口从任何数据源(如 LINQ 查询、XML 文件或业务对象)填充文档。 check the box check the box check the box check the box check the box
使用事件对数据的合并方式进行精确控制,例如数字格式。 check the box check the box check the box check the box check the box
在邮件合并期间插入图像。 check the box check the box check the box check the box check the box
以编程方式创建或修改文档的 Microsoft Word 邮件合并数据源。保留邮件合并设置和数据源。 check the box check the box check the box check the box check the box
检索邮件合并字段名称。 check the box check the box check the box check the box check the box
报告功能

LINQ Reporting Engine 是一种高级报告工具,使您能够根据模板文档和从各种来源(包括数据库、XML、JSON、OData、自定义 CLR 类型的对象、外部文档等)获得的数据生成文档。

主要特征 .NET .NET 标准 2.0 Xamarin.Android Xamarin.iOS Xamarin.Mac
直接在模板中支持 C# 语法和 LINQ 扩展方法(甚至适用于 ADO.NET 数据源) check the box check the box check the box check the box check the box
支持表、列表和通用内容的可重复和条件文档块(循环和条件) check the box check the box check the box check the box check the box
支持动态生成的图表和图像 check the box check the box check the box check the box check the box
支持将外部文档和 HTML 块插入到文档中 check the box check the box check the box check the box check the box
支持多个数据源(包括不同类型)以生成单个文档 check the box check the box check the box check the box check the box
数据关系的内置支持(主从) check the box check the box check the box check the box check the box
直接在模板中全面支持各种数据操作,例如分组、排序、过滤等 check the box check the box check the box check the box check the box
所见即所得:生成的文档保留与相应模板相同的元素格式 check the box check the box check the box check the box check the box
文档加载

Aspose.Words 允许用户使用各种格式的文档并为此提供了广泛的选项。例如,用户可以从头开始创建文档或以任何支持的导入格式加载现有文件,对该文档进行一些更改,然后保存结果。以选定格式导入文档时,用户可以应用各种加载选项。

有关函数的完整列表,请参阅 API 参考:

文档保存

Aspose.Words 允许用户使用各种格式的文档并为此提供了广泛的功能。例如,用户可以从头开始创建文档或加载它,进行一些更改,然后以任何支持的导出格式将这些更改保存在输出文件中。在以选定格式保存文档时,用户可以应用各种保存选项。

有关函数的完整列表,请参阅 API 参考:

文件格式和转换

能够以高精度快速可靠地转换各种文档格式是 Aspose.Words 的旗舰功能。这通常是选择 Aspose.Words for .NET 的充分理由。

使用 Aspose.Words,您可以使用两行代码将文档从任何支持的加载格式转换为任何支持的保存格式:

  1. 从文件或流中加载文档
  2. 将其保存为任何支持的格式

以下代码示例显示了如何转换文档:

// For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-.NET
// Load the document from disk.
Document doc = new Document(dataDir + "Rendering.docx");

// Save the document in PDF format.
doc.Save(dataDir + “SaveDoc2Pdf.pdf”);

高保真度

Aspose.Words 的主要目标之一是提供文档格式之间的高保真转换。我们使用“高保真”一词来描述输出文档保留原始文档的所有内容和格式的转换。

现代文字处理文档格式很复杂,包括数百个功能。有时,当供应商声称他们的解决方案支持特定文档格式时,这意味着仅支持该格式的基本功能。例如,Microsoft Word 文档具有高级功能,例如脚注、文本框、自动形状、OLE 对象、字段和高级格式设置属性。许多这些元素在文档处理库中经常被忽略,但在 Aspose.Words 中却没有。

更大范围的格式支持

Aspose.Words 无可争辩的优势是对大多数知名格式的广泛支持。在其他地方很难或不可能为许多重要功能找到相同级别的支持。

购买支持特定格式的解决方案时,了解支持该格式功能的级别。要进行测试,请创建一个复杂的文件并通过建议的解决方案运行它。您经常会发现许多文档元素和格式会丢失。例如,对于 DOC 格式、形状、文本框、字段、列、OLE 对象、修订、从右到左的文本通常会受到影响。

Aspose.Words 文档对象模型 (DOM) 在设计时就考虑到了 Microsoft Word 文档格式。因此,我们对 DOC、DOCX、RTF 或 WordprocessingML 等格式的支持水平是前所未有的。这些格式之间任何方向的转换都是高保真的。

当通过 Aspose.Words 运行复杂文档时,享受格式实现无与伦比的完整性。

流行格式之间的转换示例

以下是一些流行格式之间的转换示例。您可以评估 Aspose.Words 处理任务的准确程度。

DOC 到 RTF – 高保真转换:

doc-to-rtf-aspose-words-net-1


DOC 到 PDF – 高保真转换:

doc-to-pdf-aspose-words-net-2


DOC 到 ODT – 高保真转换:

Documentation to odt-aspose-words-net-2


DOC 到 XPS – 高保真转换:

Documentation to xps-aspose-words-net-1


DOC 到 PostScript——高保真转换:

Documentation to postscript-aspose-words-net-2


DOC 到 JPEG – 高保真转换:

doc-to-jpeg-aspose-words-net-1

DOC 到 GIF – 高保真转换:

doc-to-gif-aspose-words-net-1

RTF 到 TXT – 高保真转换:

rtf-to-txt-aspose-words-net-1 rtf 到 txt-aspose-words-net-2


DOC 到 HTML – 高保真转换:

doc-to-html-aspose-words-net-1

高扩展性

可扩展的服务器端场景使用 Aspose.Words 主要是因为其简单干净的设计——Aspose.Words 支持多线程。文档对象相互独立,只要一次只有一个线程可以修改一个文档(任何集合类的典型要求),多个线程可以同时处理任意数量的文档。

高性能

Aspose.Words 在加载和保存文档时展示了高性能。在测试中,一个超过 5Mb 的 DOC 文件加载不到 1 秒,然后在 P4 3GHz 机器上保存不到 1 秒。较小的文件可以以每分钟数千个的速度处理。

有好几次,我们的客户向我们报告说他们无法相信 Aspose.Words 的速度。他们跨过将一个巨大的文档加载到调试器中的代码行,它是如此的瞬间以至于他们无法相信文件被加载到 Document 对象

以下代码示例显示了如何加载和保存如此大的文档(如果需要):

// For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_QuickStart();
string fileName = "Document.docx";
// Load the document from the absolute path on disk.
Document doc = new Document(dataDir + fileName);
dataDir = dataDir + RunExamples.GetOutputFilePath(fileName);
// Save the document as DOCX document.
doc.Save(dataDir);

Guess you like

Origin blog.csdn.net/m0_67129275/article/details/131932619