Konvertieren Sie SXC in PNG

Perl-Bibliothek zum Konvertieren von SXC in PNG

Verwenden Sie die Konvertierung API von Cells Cloud, um benutzerdefinierte Tabellenkalkulations-Workflows in Perl-Projekten zu erstellen. Dies ist eine professionelle Lösung zum Online-Konvertieren von SXC in PNG und andere Dokumentformate unter Verwendung von Perl.

Konvertieren Sie SXC in PNG mit dem Cloud SDK Cells für Perl

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

Das Konvertieren von Dateiformaten von SXC in PNG kann eine komplexe Aufgabe sein. Unser Perl SDK übernimmt alle SXC-Formatkonvertierungen in das PNG-Format und behält dabei den wichtigsten strukturellen und logischen Inhalt der Quell-SXC-Tabelle bei. Unsere Perl-Bibliothek bietet eine professionelle Lösung für die Online-Konvertierung von SXC- in PNG-Dateien. Dieses Cloud SDK bietet Perl-Entwicklern leistungsstarke Funktionen und gewährleistet eine hochwertige PNG-Ausgabe.

Perl Codebeispiel für die Konvertierung von SXC in PNG mithilfe des Cloud SDK Cells

# 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 = "png";
    my $Book1Data = undef;
    my $result =undef;
    my @fileinfos = stat("Book1.sxc");
    my $filelength = $fileinfos[7];
    open(DATA, '<', "Book1.sxc") 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.png") or die "Could not open file!";
    binmode $fh;
    print $fh $result;
    close $fh;

So konvertieren Sie SXC mithilfe der Cells Cloud Perl-Bibliothek in PNG.

  1. Registrieren Sie ein Konto unterArmaturenbrett um ein kostenloses API-Kontingent und Autorisierungsdetails zu erhalten
  2. Installieren Sie das Paket Perl und fügen Sie Ihrem Projekt die Referenz hinzu (importieren Sie die Bibliothek).
  3. Öffnen Sie die Quelldatei in Perl.
  4. Verwenden Sie die Methode `put_convert_workbook`, um den resultierenden Stream abzurufen.

System Anforderungen

  1. Perl 5