Konvertera XLSX till BMP med Cells Cloud SDK för Perl
     API 
         PUT 
            
                https://api.aspose.cloud/v3.0/cells/convert
                
            
        Att konvertera filformat från XLSX till BMP kan vara en komplicerad uppgift. Vår Perl SDK hanterar alla XLSX- till BMP-formatkonverteringar samtidigt som det huvudsakliga strukturella och logiska innehållet i källbladets XLSX-kalkylblad bevaras. Vårt Perl-bibliotek tillhandahåller en professionell lösning för att konvertera XLSX till BMP-filer online. Denna Cloud SDK ger Perl-utvecklare kraftfull funktionalitet och säkerställer högkvalitativa BMP-utdata.
Perl Kodexempel för att konvertera XLSX till BMP med 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 = "bmp";
    my $Book1Data = undef;
    my $result =undef;
    my @fileinfos = stat("Book1.xlsx");
    my $filelength = $fileinfos[7];
    open(DATA, '<', "Book1.xlsx") 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.bmp") or die "Could not open file!";
    binmode $fh;
    print $fh $result;
    close $fh;
Hur man konverterar XLSX till BMP med hjälp av Cells Cloud Perl-biblioteket.
- Registrera ett konto påinstrumentbräda för att få gratis API kvot & auktoriseringsinformation
- Installera paketet Perl och lägg till referensen (importera biblioteket) till ditt projekt.
- Öppna källfilen i Perl.
- Använd metoden `put_convert_workbook` för att hämta den resulterande strömmen.
Systemkrav
- Perl 5