cloudconvert / cloudconvert-php

CloudConvert PHP SDK
https://cloudconvert.com/api/v2
MIT License
222 stars 84 forks source link

Archive #96

Closed lukassteiner closed 2 years ago

lukassteiner commented 2 years ago

I want to convert a docx to multiple png files in a zip archive.

For this, I use this code

->addTask(
                (new Task('convert', 'convert-my-file'))
                    ->set('input', 'upload-my-file')
                    ->set('input_format', 'docx')
                    ->set('output_format', 'png')
            )

How can I configure the output to be a zip archive? It should be possible according to the API documentation: https://cloudconvert.com/api/v2/archive#archive-tasks

But I don't see how it is coded with this PHP-API.

Thanks for your help

josiasmontag commented 2 years ago

You need to add an archive task after the convert task.

This is a support request and not an issue of the PHP SDK, therefore I am closing this issue. As a CloudConvert customer, please contact support@cloudconvert.com for support.