Export WORKSHEET to PPTX from Excel

Android library for exporting WORKSHEET to PPTX file

Use Export API of Cells Cloud to export Excel file internal object workflows in Android. This is a professional solution to export WORKSHEET to PPTX format file from spreadsheet online using Android.

Export WORKSHEET object to PPTX format file using Cells Cloud SDK for Android

API
POST
https://api.aspose.cloud/v3.0/cells/export

Export WORKSHEET object to PPTX file from Excel file is a complex task. Export WORKSHEET to PPTX format transitions is performed by our Android SDK while maintaining the source WORKSHEET spreadsheet's main structural and logical content. Our Android library is a professional solution to export WORKSHEET objects to PPTX format files online. This Cloud SDK gives Android developers powerful functionality and perfect PPTX output.

Code example in Android using REST API to export WORKSHEET to PPTX format from spreadsheet

// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-android/
    import java.io.*;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Base64;
    import com.aspose.cloud.cells.api.*;
    import com.aspose.cloud.cells.model.*;
    public class Export {
        public static void main(String[] args) {
            String format = "pptx";
            String objectType = "worksheet";
            HashMap<String,File> fileMap = new HashMap<String,File>();
            fileMap.put("Book1.xlsx" ,new File("C:\Book1.xlsx") );
            fileMap.put("myDocument.xlsx" ,new File("C:\myDocument.xlsx") );
            try {
                LightCellsApi cellsApi = new LightCellsApi(System.getenv("ProductClientId"), System.getenv("ProductClientSecret"),"v3.0","https://api.aspose.cloud");
                FilesResult response = cellsApi.postExport(fileMap,objectType, format,null);            
                List<FileInfo> files = response.getFiles();
                String filename = files.get(0).getFilename();
                String fileContent = files.get(0).getFileContent();
                byte[] data = Base64.getDecoder().decode(fileContent);
                OutputStream outputStream = new FileOutputStream(filename);
                outputStream.write(data,0,data.length);
                outputStream.close();
            }catch(Exception exception )
            {
                System.out.print(exception);
            }
        }
    }


How to use Cells Cloud SDK for Android to export objects from Excel WORKSHEET to PPTX

  1. Register an account at Dashboard to get free API quota & authorization details
  2. Initialize the Cells API with your Client ID, Client Secret, Base URL, and API version.
  3. Use the `postExport` method to retrieve the resulting stream.


System Requirements

  1. Android 7 or newer
  2. Java(TM) SE Runtime Environment