# Document

URL: https://chugunov.pro/api-bitrix/documentgenerator/document/
Проверено на 1С-Битрикс 25.x, обновлено 03.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией 1С-Битрикс.

Класс `\Bitrix\DocumentGenerator\Document`
Модуль: DocumentGenerator.

## Описание

int ID

Исходный файл: `source/documentgenerator/lib/document.php:34`

## Константы (6)

- `ERROR_NO_TRANSFORMER_MODULE`
- `IMAGE`
- `PDF`
- `PRODUCTS_TABLE_VARIANT_PLACEHOLDER`
- `STAMPS_ENABLED_PLACEHOLDER`
- `THIS_PLACEHOLDER`

## Методы (42)

- [`__get()`](https://chugunov.pro/api-bitrix/documentgenerator/document/__get/)
- [`actualize()`](https://chugunov.pro/api-bitrix/documentgenerator/document/actualize/) — Пересоздать документ, используя те же внешние значения.
- [`checkFields()`](https://chugunov.pro/api-bitrix/documentgenerator/document/checkfields/) — Если $requiredOnly равно true, возвращает список обязательных с пустыми значениями.
- [`static createByTemplate()`](https://chugunov.pro/api-bitrix/documentgenerator/document/createbytemplate/) — Создаёт новый документ из шаблона на основе конкретного значения.
- [`enablePublicUrl()`](https://chugunov.pro/api-bitrix/documentgenerator/document/enablepublicurl/)
- [`enableStamps()`](https://chugunov.pro/api-bitrix/documentgenerator/document/enablestamps/)
- [`excludeFields()`](https://chugunov.pro/api-bitrix/documentgenerator/document/excludefields/) — Добавляет $fieldNames в $this->excludeFields (не перезаписывает их)
- [`getCreateTime()`](https://chugunov.pro/api-bitrix/documentgenerator/document/getcreatetime/)
- [`getCreationMethod()`](https://chugunov.pro/api-bitrix/documentgenerator/document/getcreationmethod/)
- [`getDownloadUrl()`](https://chugunov.pro/api-bitrix/documentgenerator/document/getdownloadurl/)
- [`getEmailDiskFile()`](https://chugunov.pro/api-bitrix/documentgenerator/document/getemaildiskfile/)
- [`getFields()`](https://chugunov.pro/api-bitrix/documentgenerator/document/getfields/) — Возвращает массив со всеми плейсхолдерами, их описаниями полей и фактическими значениями.
- [`getFile()`](https://chugunov.pro/api-bitrix/documentgenerator/document/getfile/)
- [`getFileName()`](https://chugunov.pro/api-bitrix/documentgenerator/document/getfilename/)
- [`getImageUrl()`](https://chugunov.pro/api-bitrix/documentgenerator/document/getimageurl/)
- [`getIsCheckAccess()`](https://chugunov.pro/api-bitrix/documentgenerator/document/getischeckaccess/)
- [`getNumber()`](https://chugunov.pro/api-bitrix/documentgenerator/document/getnumber/)
- [`getPdfUrl()`](https://chugunov.pro/api-bitrix/documentgenerator/document/getpdfurl/)
- [`getPrintUrl()`](https://chugunov.pro/api-bitrix/documentgenerator/document/getprinturl/)
- [`getProvider()`](https://chugunov.pro/api-bitrix/documentgenerator/document/getprovider/)
- [`getPublicUrl()`](https://chugunov.pro/api-bitrix/documentgenerator/document/getpublicurl/)
- [`getTemplate()`](https://chugunov.pro/api-bitrix/documentgenerator/document/gettemplate/)
- [`getTitle()`](https://chugunov.pro/api-bitrix/documentgenerator/document/gettitle/)
- [`getUpdateTime()`](https://chugunov.pro/api-bitrix/documentgenerator/document/getupdatetime/)
- [`getUserId()`](https://chugunov.pro/api-bitrix/documentgenerator/document/getuserid/)
- [`getValue()`](https://chugunov.pro/api-bitrix/documentgenerator/document/getvalue/) — Возвращает значение по его $name.
- [`hasAccess()`](https://chugunov.pro/api-bitrix/documentgenerator/document/hasaccess/)
- [`isStampsEnabled()`](https://chugunov.pro/api-bitrix/documentgenerator/document/isstampsenabled/)
- [`static loadById()`](https://chugunov.pro/api-bitrix/documentgenerator/document/loadbyid/) — Загружает документ из базы данных по id
- [`setCheckFields()`](https://chugunov.pro/api-bitrix/documentgenerator/document/setcheckfields/)
- [`setFields()`](https://chugunov.pro/api-bitrix/documentgenerator/document/setfields/) — Добавляет новые поля или перезаписывает старые (кроме 'SOURCE' и 'DOCUMENT'), но не очищает весь список.
- [`setImageId()`](https://chugunov.pro/api-bitrix/documentgenerator/document/setimageid/)
- [`setIsCheckAccess()`](https://chugunov.pro/api-bitrix/documentgenerator/document/setischeckaccess/)
- [`setPdfId()`](https://chugunov.pro/api-bitrix/documentgenerator/document/setpdfid/)
- [`setPlaceholderForFieldEmptyValue()`](https://chugunov.pro/api-bitrix/documentgenerator/document/setplaceholderforfieldemptyvalue/)
- [`setProductsTableVariant()`](https://chugunov.pro/api-bitrix/documentgenerator/document/setproductstablevariant/)
- [`setStorage()`](https://chugunov.pro/api-bitrix/documentgenerator/document/setstorage/)
- [`setTemplate()`](https://chugunov.pro/api-bitrix/documentgenerator/document/settemplate/)
- [`setUserId()`](https://chugunov.pro/api-bitrix/documentgenerator/document/setuserid/)
- [`setValues()`](https://chugunov.pro/api-bitrix/documentgenerator/document/setvalues/) — Добавляет новые значения или перезаписывает старые, но не очищает весь список.
- [`update()`](https://chugunov.pro/api-bitrix/documentgenerator/document/update/)
- [`static upload()`](https://chugunov.pro/api-bitrix/documentgenerator/document/upload/) — Загружает новый документ, сформированный извне

Оригинал в официальной документации: https://docs.1c-bitrix.ru/api/classes/Bitrix-DocumentGenerator-Document.html
