将工作簿从 Excel 导出到 EMF

Perl 用于将 WORKBOOK 导出到 EMF 文件的库

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

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

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

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

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

# 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 => 'workbook',format => 'emf');
    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;

如何使用Cells Cloud SDK for Perl将对象从Excel WORKBOOK导出到EMF

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

系统要求

  1. Perl 5