将 LISTOBJECT 从 Excel 导出到 WMF

Perl 用于将 LISTOBJECT 导出到 WMF 文件的库

使用Cells云的导出API导出Perl中的Excel文件内部对象工作流程。这是使用Perl在线电子表格将LISTOBJECT导出为WMF格式文件的专业解决方案。

使用 Cells Cloud SDK for Perl 将 LISTOBJECT 对象导出为 WMF 格式文件

API
POST
https://api.aspose.cloud/v3.0/cells/export

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

Perl 中的代码示例使用 REST API 将电子表格中的 LISTOBJECT 导出为 WMF 格式

# For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-perl/
    use strict;
    use warnings;
    use utf8; 
    use File::Slurp;
    use MIME::Base64;
    use AsposeCellsCloud::LightCellsApi;
    my $config = AsposeCellsCloud::Configuration->new( client_id => $ENV{'ProductClientId'}, client_secret => $ENV{'ProductClientSecret'});
    my $instance = AsposeCellsCloud::LightCellsApi->new(AsposeCellsCloud::ApiClient->new( $config));
    my $filemap = { 'Book1.xlsx' => '~/TestData/Book1.xlsx', 'myDocument.xlsx' => ~/TestData/myDocument.xlsx'};
    my $result = $instance->post_export(file => $filemap , object_type => 'listobject',format => 'wmf');
    my $decoded = decode_base64($result->{'files'}[0]->{'file_content'});
    open(my $fh, '>',$result->{'files'}[0]->{'filename'}) or die "Could not open file!";
    binmode $fh;
    print $fh $decoded;
    close $fh;

如何使用 Perl 的 Cells Cloud SDK 将对象从 Excel LISTOBJECT 导出到 WMF

  1. 注册一个帐户仪表板获取免费API配额和授权详细信息
  2. 使用您的客户端 ID、客户端密钥、基本 URL 和 API 版本初始化 Cells API。
  3. 调用post_export方法获取结果流

系统要求

  1. Perl 5