تحويل BMP إلى DOCX باستخدام Cells Cloud SDK لـ Perl
API
PUT
https://api.aspose.cloud/v3.0/cells/convert
يمكن أن يكون تحويل تنسيقات الملفات من BMP إلى DOCX مهمة معقدة. يعالج Perl SDK الخاص بنا جميع تحويلات تنسيق BMP إلى DOCX مع الحفاظ على المحتوى الهيكلي والمنطقي الرئيسي لجدول البيانات BMP المصدر. توفر مكتبتنا Perl حلاً احترافيًا لتحويل BMP إلى ملفات DOCX عبر الإنترنت. يعمل Cloud SDK على تمكين مطوري Perl من الحصول على وظائف قوية ويضمن إخراج DOCX عالي الجودة.
Perl مثال على الكود لتحويل BMP إلى DOCX باستخدام 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 = "docx";
my $Book1Data = undef;
my $result =undef;
my @fileinfos = stat("Book1.bmp");
my $filelength = $fileinfos[7];
open(DATA, '<', "Book1.bmp") 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.docx") or die "Could not open file!";
binmode $fh;
print $fh $result;
close $fh;
كيفية استخدام Perl SDK لتحويل BMP إلى DOCX
- تسجيل حساب فيلوحة القيادة للحصول على تفاصيل الحصص والترخيص API مجانًا
- قم بتهيئة Cells API باستخدام معرف العميل وسر العميل وعنوان URL الأساسي وإصدار API.
- استخدم طريقة `put_convert_workbook` لاسترداد الدفق الناتج.
متطلبات النظام
- Perl 5