在 Dart 中將 Word 文件轉換為 PDF 格式。此 Dart 庫旨在使用 REST API 將 Word 文件轉換為各種文件格式。
API Word 到 PDF 轉換允許 Dart 開發人員輕鬆將 Word 轉換為 PDF 並利用這兩種文件格式。
將文件格式從 Word 轉換為 PDF 是一項複雜的任務。所有 Word 到 PDF 格式的轉換均由我們的 Dart SDK 執行,同時保留源 Word 文檔的主要結構和邏輯內容。
我們的 Dart 庫是在線轉換 Word、PDF 文件的專業解決方案。此 Cloud SDK 為 Dart 開發人員提供了強大的功能和完美質量的 PDF 輸出。
以下使用 Conversion API 的 Dart 示例將幫助您快速入門。
import 'package:aspose_words_cloud/aspose_words_cloud.dart';
final config = Configuration("####-####-####-####-####", "##################");
final wordsApi = WordsApi(config);
final doc = (await File('Input.docx').readAsBytes()).buffer.asByteData();
final request = ConvertDocumentRequest(doc, 'pdf');
final convert = await wordsApi.convertDocument(request);
從 GitHub 克隆 Aspose.Words Cloud SDK for Dart 源代碼並在您的項目中使用它。將此依賴項添加到您的 pubspec.yaml: dependencies: aspose_words_cloud: 22.4.0
請按照這些 Instructions 快速獲取必要的安全憑證並訪問我們的 REST API。
請參閱 Repository Documentation 以查看詳細信息。