将 HTML 另存为 XPS

Perl 库,用于将 HTML 保存为 XPS

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

将 HTML 文件另存为 Perl 中的 XPS

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

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

Perl 使用 REST API 将 HTML 保存为 XPS 的代码示例

# For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-perl/
    my $config = AsposeCellsCloud::Configuration->new( client_id => $ENV{'ProductClientId'}, client_secret => $ENV{'ProductClientSecret'});
    my $instance = AsposeCellsCloud::CellsApi->new(AsposeCellsCloud::ApiClient->new( $config));
    my $name = 'Book1.html';
    my $save_options = undef;
    my $folder = 'CellsTests';
    my $newfilename = 'Book1Saveas.xps';
    $result = $instance->cells_save_as_post_document_save_as(name => $name,save_options => $save_options, newfilename => $newfilename, folder => $folder);

如何使用Cells云Perl库将HTML另存为XPS。

  1. 注册一个帐户仪表板获取免费API配额和授权详细信息
  2. 安装 Perl 库并将引用(导入库)添加到您的项目中。
  3. 打开Perl中的源文件。
  4. 呼叫帖子_作业簿_save_as 方法来获取结果流

系统要求

  1. Perl 5