AsposeWordsCloud 24.5

AsposeWordsCloud 24.5

Muhammad Sohail IsmailAspose Cloud 维护。



  • 作者
  • ivan.kishchenko

Aspose.Words Cloud SDK for Swift

此存储库包含 Aspose.Words Cloud SDK for Swift 的源代码。此 SDK 使您能够快速方便地在 Swift 应用程序中使用 Aspose.Words Cloud REST API,且初始成本为零。

Aspose.Words Cloud API 参考

主要特性

  • 支持多种文档格式之间的转换(包括20多种格式),如 PDF<->Word 转换
  • 邮件合并和报告生成
  • 拆分 Word 文档
  • 访问 Word 文档元数据和统计信息
  • 查找和替换
  • 水印和防护
  • 对文档对象模型(包括部分、段落、文字、图像、表格、页眉/页脚等)的完整读取和写入访问

版本 21.1 的增强功能

  • 为所有 API 方法添加了在线版本

版本 20.11 的增强功能

  • 在配置 json 文件中,appSid/appKey 被替换为 clientId/clientSecret。
  • 在 Words API 初始化方法中,clientId 参数在 clientSecret 参数之前。
  • 修复了对象属性序列化的问题(这是NPE的来源)。

20.10版本增强功能

  • 内部API变更。

20.9版本增强功能

  • 添加了批量API功能

20.8版本增强功能

  • 添加了新的API方法(PUT '/words/{name}/compatibility/optimize'),允许优化文档内容以及Aspose.Words对特定版本Microsoft Word的默认行为。
  • 为AppendDocument API添加了'ApplyBaseDocumentHeadersAndFootersToAppendingDocuments'选项到'DocumentEntryList'。
  • 已移除WithoutNodePath方法,请传递null值。

20.7版本增强功能

  • 添加了'Markdown'保存格式。
  • 添加了更新段落格式不需要节点路径的端点(PUT '/words/{name}/paragraphs/{index}/format')。
  • 修复URL参数编码问题。

20.6版本增强功能

  • 添加了新方法
    • DeleteAllParagraphTabStopsWithoutNodePath
    • DeleteParagraphTabStopWithoutNodePath
    • GetParagraphTabStopsWithoutNodePath
    • InsertOrUpdateParagraphTabStopWithoutNodePath
    • InsertParagraphWithoutNodePath
    • UpdateParagraphFormatWithoutNodePath
    • UpdateParagraphListFormatWithoutNodePath
    • DeleteParagraphListFormatWithoutNodePath
  • 与绘图对象相关的方法已更改内容。引入了特殊请求类而不是字符串。
  • InsertOrUpdateParagraphTabStop和DeleteParagraphTabStop方法的参数顺序已更改。
  • 已添加 OoxmlSaveOptionsData.CompressionLevel 属性

版本 20.5 的功能增强

  • 添加了处理 Word 文档列表的方法
    • GetLists
    • GetList
    • InsertList
    • UpdateList
    • UpdateListLevel
  • 添加了处理样式的方法
    • GetStyles
    • UpdateStyle
    • InsertStyle
    • CopyStyle
    • GetStyleFromDocumentElement
    • ApplyStyleToDocumentElement
  • 添加了处理段落列表格式的方法
    • GetParagraphListFormat
    • GetParagraphListFormatWithoutNodePath
    • UpdateParagraphListFormat
    • DeleteParagraphListFormat
  • 添加了处理段落制表位的方法
    • GetParagraphTabStops
    • InsertOrUpdateParagraphTabStop
    • DeleteAllParagraphTabStops
    • DeleteParagraphTabStop
  • 添加了构建报告的方法
    • BuildReport
    • BuildReportOnline
  • 将 Shading 属性添加到 ParagraphFormat

如何使用 SDK?

完整的源代码可供在仓库文件夹中使用。您可以直接在项目中通过源代码使用,或将此仓库作为依赖项添加(推荐)。更多详情请访问我们的文档网站

先决条件

为了使用 Aspose Words Cloud SDK for Swift,您需要在Aspose Cloud上注册一个账户,并在云仪表板中查找/创建 App Key 和 SID。有免费配额可用。更多详情请参见Aspose Cloud 价格

安装与使用

Swift 包管理器

将此存储库链接添加到您的 Package.swift 中作为依赖项

dependencies: [
    // Dependencies declare other packages that this package depends on.
    .package(url: "https://github.com/aspose-words-cloud/aspose-words-cloud-swift", from: "21.1"),
],
targets: [
    // Targets are the basic building blocks of a package. A target can define a module or a test suite.
    // Targets can depend on other targets in this package, and on products in packages which this package depends on.
    .target(
        name: "YourTargetName",
        dependencies: ["AsposeWordsCloud"]
    ),
]

Cocoapods

将 Git 存储库链接添加到您的 Podfile 中作为依赖项

pod 'AsposeWordsCloud', :git => 'https://github.com/aspose-words-cloud/aspose-words-cloud-swift.git', :tag => '21.1'

入门指南

import Foundation;
import AsposeWordsCloud;

let wordsApi = WordsAPI(clientId: "YOUR_APP_SID", clientSecret: "YOUR_APP_KEY");
let fileName = "TestCreateDocument.doc";
let request = CreateDocumentRequest(fileName: fileName);
let response = try wordsApi.createDocument(request: request);

测试 包含使用 SDK 的各种示例。请将您的凭据放入 "Settings/servercreds.json" 中以运行测试。

依赖项

  • Swift 4.2+
  • 引用的包(更多信息请参阅 此处

许可

所有 Aspose.Words Cloud SDK、辅助脚本和模板均受 MIT 许可 授权。

联系我们

您的反馈对我们非常重要。请随时使用我们的 支持论坛 与我们联系。

资源

网站
产品首页
API 参考
文档
博客

其他语言

我们使用多种语言生成我们的 SDK,您可以查看是否在我们的 列表 中找到了您所需的。

如果在列表中找不到您的语言,您可以随时向我们提出请求,或者使用您可以在这里找到的原始 REST API 请求。