Доброго дня. Через пример со сниппетов сделал создание docx файла
| Код |
|---|
$templateId = 35;
$quoteId = $arFields['ID'];
$template = \Bitrix\DocumentGenerator\Template::loadById($templateId);
$template->setSourceType(\Bitrix\Crm\Integration\DocumentGenerator\DataProvider\Quote::class);
$document = \Bitrix\DocumentGenerator\Document::createByTemplate($template, $quoteId);
$result = $document->getFile();
if($result->isSuccess()){
$diskFileID = $result->getData()['emailDiskFile'];
}
|
И здесь я получаю переменную emailDiskFile которая возвращает мне ID файла на Диске. Но как мне получить файл не docx формата, а pdf ?