تحويل XLT إلى XLS

مكتبة Perl لتحويل XLT إلى XLS

استخدم التحويل API من Cells Cloud لإنشاء سير عمل جدول بيانات مخصص في مشاريع Perl. يعد هذا حلاً احترافيًا لتحويل XLT إلى XLS وتنسيقات المستندات الأخرى عبر الإنترنت باستخدام Perl.

تحويل XLT إلى XLS باستخدام Cells Cloud SDK لـ Perl

API
PUT
https://api.aspose.cloud/v3.0/cells/convert

يمكن أن يكون تحويل تنسيقات الملفات من XLT إلى XLS مهمة معقدة. يتعامل SDK Perl الخاص بنا مع جميع تحويلات تنسيق XLT إلى XLS مع الحفاظ على المحتوى الهيكلي والمنطقي الرئيسي لجدول بيانات XLT المصدر. توفر مكتبتنا Perl حلاً احترافيًا لتحويل ملفات XLT إلى XLS عبر الإنترنت. يعمل Cloud SDK على تمكين مطوري Perl من الحصول على وظائف قوية ويضمن إخراج XLS عالي الجودة.

Perl مثال على الكود لتحويل XLT إلى XLS باستخدام Cells Cloud SDK

# 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 AsposeCellsCloud::CellsApi;
    my $config = AsposeCellsCloud::Configuration->new( client_id => $ENV{'ProductClientId'}, client_secret => $ENV{'ProductClientSecret'});
    my $instance = AsposeCellsCloud::CellsApi->new(AsposeCellsCloud::ApiClient->new( $config));
    my $format = "xls";
    my $Book1Data = undef;
    my $result =undef;
    my @fileinfos = stat("Book1.xlt");
    my $filelength = $fileinfos[7];
    open(DATA, '<', "Book1.xlt") or die "file can not open, $!";
    binmode(DATA);
    read (DATA, $Book1Data, $filelength);
    close (DATA); 
    $result = $instance->cells_workbook_put_convert_workbook(workbook => $Book1Data, format => $format);
    open(my $fh, '>', "Dest.xls") or die "Could not open file!";
    binmode $fh;
    print $fh $result;
    close $fh;

كيفية تحويل XLT إلى XLS باستخدام مكتبة Cells Cloud Perl.

  1. تسجيل حساب فيلوحة القيادة للحصول على تفاصيل الحصص والترخيص API مجانًا
  2. قم بتثبيت حزمة Perl وأضف المرجع (استيراد المكتبة) إلى مشروعك.
  3. افتح الملف المصدر في Perl.
  4. استخدم طريقة `put_convert_workbook` لاسترداد الدفق الناتج.

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

  1. Perl 5