将 XLS 保存为 WMF

Python 用于将 XLS 保存为 WMF 的库

使用Cells云的SaveAs API在Python中创建自定义电子表格工作流程。这是使用Python在线将XLS保存为WMF和其他文档格式的专业解决方案。

将 XLS 文件另存为 WMF Python

API
POST
https://api.aspose.cloud/v3.0/cells/{name}/SaveAs

将 XLS 文件格式保存为 WMF 是一项复杂的任务。所有 XLS 到 WMF 格式的转换均由我们的 Python SDK 执行,同时保留源 XLS 电子表格的主要结构和逻辑内容。我们的 Python 库是在线将 XLS 保存为 WMF 文件的专业解决方案。该Cloud SDK为Python开发人员提供了强大的功能和完美的WMF输出。

Python 使用 REST 将 XLS 保存为 WMF 的代码示例 API

# For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-python/
    cells_api = CellsApi(os.getenv('ProductClientId'),os.getenv('ProductClientSecret'))
    name ='Book1.xls'    
    saveOptions = None
    newfilename = "Book1Saveas.wmf"
    isAutoFitRows= True
    isAutoFitColumns= True
    folder = "PythonTest"
    saveResponse = cells_api.cells_save_as_post_document_save_as(name,save_options=saveOptions, newfilename=(folder +'/' + newfilename),folder=folder)

了解如何使用 Cells Cloud Python 库将 XLS 保存为 WMF。

  1. 注册一个帐户仪表板获取免费API配额和授权详细信息
  2. 安装 Python 库并将引用(导入库)添加到您的项目中。
  3. 打开Python中的源文件。
  4. 使用 `post_workbook_save_as` 方法检索结果流。

系统要求

  1. Python 2.7 或更高版本
  2. Python 3.10 或更高版本