سويفت API لتصدير المصنف إلى ملف PPTX

مكتبة سويفت لتصدير المصنف إلى ملف PPTX

استخدم Cells تصدير REST API لتصدير سير عمل الكائنات الداخلية لجدول البيانات في Swift. يعد هذا حلاً احترافيًا لتصدير WORKBOOK إلى ملف بتنسيق PPTX من جدول البيانات عبر الإنترنت باستخدام Swift.

تصدير كائن WORKBOOK إلى ملف بتنسيق PPTX في Swift

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

يعد تصدير كائن WORKBOOK إلى ملف PPTX من جدول البيانات مهمة معقدة. يتم تنفيذ عمليات تصدير WORKBOOK إلى تنسيق PPTX بواسطة Swift SDK الخاص بنا مع الحفاظ على المحتوى الهيكلي والمنطقي الرئيسي لجدول بيانات WORKBOOK المصدر. تعد مكتبة Swift الخاصة بنا حلاً احترافيًا لتصدير كائنات WORKBOOK إلى ملفات بتنسيق PPTX عبر الإنترنت. يوفر Cloud SDK لمطوري Swift وظائف قوية ومخرجات PPTX مثالية.

مثال على التعليمات البرمجية في Swift باستخدام REST API لتصدير WORKBOOK إلى تنسيق PPTX من جدول البيانات

    // 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)


كيفية استخدام Swift API لتصدير المصنف إلى PPTX

  1. قم بإنشاء حساب علىلوحة القيادة للحصول على تفاصيل الحصص والترخيص API مجانًا
  2. تهيئة CellsApi باستخدام معرف العميل وسر العميل وعنوان URL الأساسي وإصدار API
  3. استدعاء طريقة postExport للحصول على الدفق الناتج


متطلبات النظام