LocalFile('test/resources/PDF.pdf', ExportPDFToImages.SupportedSourceFormat.pdf);

 exportPDFToImages.setInput(input);

 exportPDFToImages.execute(executionContext)
     .then(result => {
          let saveFilesPromises = [];
          for(let i = 0; i < result.length; i++){
              saveFilesPromises.push(result[i].saveAsFile(`output/exportPDFToJPEGOutput_{i}.jpeg`));
          }
          return Promise.all(saveFilesPromises);
      })
     .catch(err => console.log(err));
</code>
</pre></div>
      