تصدير الصورة إلى WMF من Excel

مكتبة Perl لتصدير الصورة إلى ملف WMF

استخدم تصدير API من Cells Cloud لتصدير سير عمل الكائن الداخلي للملف Excel في Perl. يعد هذا حلاً احترافيًا لتصدير ملف بتنسيق PICTURE إلى WMF من جدول البيانات عبر الإنترنت باستخدام Perl.

تصدير كائن PICTURE إلى ملف بتنسيق WMF باستخدام Cells Cloud SDK لـ Perl

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

يعد تصدير كائن PICTURE إلى ملف WMF من ملف Excel مهمة معقدة. يتم تنفيذ عمليات تصدير PICTURE إلى تنسيق WMF بواسطة Perl SDK الخاص بنا مع الحفاظ على المحتوى الهيكلي والمنطقي الرئيسي لجدول بيانات PICTURE المصدر. تعد مكتبتنا Perl حلاً احترافيًا لتصدير كائنات PICTURE إلى ملفات بتنسيق WMF عبر الإنترنت. يوفر Cloud SDK لمطوري Perl وظائف قوية ومخرجات WMF مثالية.

مثال على الكود في Perl باستخدام REST API لتصدير الصورة إلى تنسيق 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 => 'picture',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;

كيفية استخدام Cells Cloud SDK لـ Perl لتصدير الكائنات من Excel PICTURE إلى WMF

  1. تسجيل حساب فيلوحة القيادة للحصول على تفاصيل الحصص والترخيص API مجانًا
  2. قم بتهيئة Cells API باستخدام معرف العميل وسر العميل وعنوان URL الأساسي وإصدار API.
  3. قم باستدعاء طريقة post_export للحصول على الدفق الناتج

متطلبات النظام

  1. Perl 5