Some Drupal contributed modules require a method to convert HTML (or other formats) into PDF. One of the ways to do that is using the command line-based tool wkhtmltopdf.
Unfortunately, wkhtmltopdf is not supplied out of the box within the versions of Ubuntu that Acquia Cloud instances run. Wkhtmltopdf may also require additional fonts for multilingual PDF generation which are not installed on the Acquia Cloud platform.
Also, be aware that future changes to the underlying servers (for example, changes in the OS version) can cause your wkhtmltopdf binary to stop working; customers would be responsible for handling upgrading of this tool as well.
dpkg-deb -x
on an Ubuntu machine or VMldd
on the extracted binary to verify its dependencies:
sites/xxxxxx/files/scripts/wkhtmltopdf/wkhtmltopdf
$config['printable.settings']['pdf_tool_path'] = DRUPAL_ROOT . '/sites/xxxxxx/files/scripts/wkhtmltopdf/wkhtmltopdf';
You can change your Ubuntu version on a per environment basis under Configuration > Operating System, see https://docs.acquia.com/acquia-cloud-platform/docs/manage-apps/configuring-os-versions
Note: We can not comply with customer requests to install this software directly as an Ubuntu package (.deb).
The following are not guaranteed to work for every scenario, and will require some time from your development team to evaluate and test. Note that Acquia Support does not offer help on installing nor testing these workarounds.
Some customers have had luck installing a pre-compiled binary of wkhtmltopdf by using this Github project: https://github.com/SilvertipSoftware/wkhtmltopdf-amd64 which is available in Packagist and can be installed with Composer as a dependency. Acquia Cloud uses the x86_64 architecture, which is equivalent to the amd64 architecture this package supports.
Additionally, there are three other PDF generation utilities which are much more compatible with our platform though. They're PHP-libraries that you could add into the /docroot/sites/all/libraries directory of your Git repository:
For these options, you will be responsible to verify they are compatible with the modules and/or processes you are developing in your site.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Wed Oct 22 2025 08:59:29 GMT+0000 (Coordinated Universal Time)