Exporter ODS vers un fichier XLSX dans le Cloud

Excel et exportation de feuilles de calcul OpenOffice avec SDK Cloud open source pour Perl

Exporter ODS vers le fichier XLSX dans le SDK Cloud pour Perl

  1. Créez un compte surTableau de bord pour obtenir gratuitement les détails du quota et de l’autorisation API
  2. Initialisez CellsApi avec l’ID client, le secret client, l’URL de base et la version API
  3. Appelez la méthode cells_workbook_put_convert_workbook pour obtenir le flux XLSX résultant

Commencez avec Excel REST API

Obtenez le code source du SDK Cloud Excel for .NET à partir deGitHub pour compiler le SDK vous-même ou rendez-vous surSorties pour des options de téléchargement alternatives.

Jetez également un œil à Swagger-basedAPI Référence pour en savoir plus sur leExcel REPOS API.

Perl Code pour la conversion ODS en XLSX

// 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 = "xlsx";
    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.xlsx") or die "Could not open file!";
    binmode $fh;
    print $fh $result;
    close $fh;

FAQ

  • How can I get started with Aspose. REST APIs?
    Quickstart not only guides through the initialization of Aspose. Cloud API, it also helps in installing the required libraries.
  • Where can I see the release notes for Aspose. Cloud API?
    Complete release notes can be reviewed at Aspose. Cloud Documentation.
  • Is it safe to convert to in the Cloud?
    Of course! Aspose Cloud uses Amazon EC2 cloud servers that guarantee the security and resilience of the service. Please read more about Aspose's Security Practices.
  • What file formats are supported by Aspose. Cloud API?
    Aspose. Cloud can convert to and more. Checkout the complete list of supported file formats.
  • I do not have time to set up. Is there a quick demo for to that I can try?
    Indeed! Checkout the to Conversion App.

Other Options

What is File Format?

What is File Format?