PDF Engine for EspoCRM using Gotenberg, a Docker-powered stateless API for PDF files.
Important
Gotenberg must be installed and accessible to use this extension. It can be hosted separately from EspoCRM.
Refer to the Gotenberg documentation for installation details.
Follow these instructions to install and configure the extension.
This extension is installed like any other EspoCRM extension. For detailed steps, refer to the EspoCRM documentation.
After installing the extension, configure the Gotenberg API URL as follows:
- Navigate to Administration > Integrations > Gotenberg.
- Check the
Enabled
option. - Enter the Gotenberg API URL in the
API URL
field, e.g.,http://gotenberg:3000
. - Click Save.
Note
These settings will be stored in the data/config.php
file.
To configure the extension directly, update the data/config.php
file with the following:
<?php
return [
// ... existing configuration
'pdfEngine' => 'Gotenberg', // Change from default Dompdf to Gotenberg
'gotenbergApiUrl' => 'http://gotenberg:3000',
];
Tip
Use only one method to configure the extension. If you configure it via the UI, do not edit the data/config.php
file, and vice versa.
After updating the configuration, clear the cache:
-
From the UI: Go to Administration > Clear Cache.
-
From the Command Line: Run the following command:
php clear_cache.php
This project is based on the official ext-template. To simplify development, key commands from the ext-template have been wrapped in a Makefile
and are executed within a Docker container.
To see all available commands run:
make help
Tip
If you prefer to run the original commands directly, first access the Docker container using:
docker compose exec --user devilbox php bash
To build a full instance, run:
make all
To build extension package run the following command:
make extension
Please see License File for more information.