PHP code example of groupdocscloud / groupdocs-assembly-cloud
1. Go to this page and download the library: Download groupdocscloud/groupdocs-assembly-cloud library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
groupdocscloud / groupdocs-assembly-cloud example snippets
$assembly = new AssemblyApi($creds["AppSid"], $creds["AppKey"], $creds["BaseUrl"]);
$reportData = file_get_contents('FileWithData');
$assembleData = new Model\AssembleOptions(array("template_file_info"=>new Model\TemplateFileInfo(array("file_path"=> 'FileNameInStorage')), "save_format"=>"pdf", "report_data"=> $reportData));
$request = new Requests\AssembleDocumentRequest($assembleData);
$result = $assembly->assembleDocument($request);