Swift API to export WORKBOOK to PPTX file

Swift library to export WORKBOOK to PPTX file

Use Cells Export REST API to export spreadsheet internal object workflows in Swift. This is a professional solution to export WORKBOOK to PPTX format file from spreadsheet online using Swift.

Export WORKBOOK object to PPTX format file in Swift

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

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

Code example in Swift using REST API to export WORKBOOK to PPTX format from spreadsheet

    // For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-swift/
    import AsposeCellsCloud
    let expectation1 = self.expectation(description: "checkAuth")
    AsposeCellsCloudAPI.clientId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    AsposeCellsCloudAPI.clientSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    AuthAspose.checkAuth()
    {
        (authError) in
        guard authError == nil else {
            XCTFail("error checkAuth")
            return
        }
        expectation1.fulfill()
    }
    self.waitForExpectations(timeout: testTimeout, handler: nil)
    let expectation = self.expectation(description: "testpostExport_Workbook")
    let objectType:String = "workbook"
    let format:String = "pptx"
    var files = Dictionary<String, URL>()
    files[BOOK1] = getURL(BOOK1)
    files[MYDOC] = getURL(MYDOC)        
    LiteCellsAPI.postExport(files: files, objectType: objectType, format: format)
    {
        (response, error) in
        guard error == nil else {
            XCTFail("error testpostExport_Workbook")
            return
        }        
        if let response = response {
            XCTAssertTrue(response is FilesResult)
            expectation.fulfill()
        }
    }
    self.waitForExpectations(timeout: testTimeout, handler: nil)


How to use Swift API to export WORKBOOK to PPTX

  1. Create an account at Dashboard to get free API quota & authorization details
  2. Initialize CellsApi with Client Id, Client Secret, Base URL & API version
  3. Call postExport method to get the resultant stream


System Requirements