12-17-2014 12:29 PM
12-22-2014 05:24 AM
Solution trouvée !
$client = new NuxeoPhpAutomationClient('[...]/nuxeo/site/automation');
$session = $client->getSession($this->user, $this->pass); $answer = $session->newRequest("Blob.ToPDF")
->set('input', 'doc:' . $file)
->sendRequest();
if (!isset($answer) OR $answer == false)
echo '$answer is not set';
else {
header('Content-Description: File Transfer');
header('Content-Type: application/pdf');
$file = 'fichier.pdf';
header('Content-Disposition: attachment; filename=' . $file);
readfile('tempstream');
}
Si ça peut aider ...
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.