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 commandline-based tool wkhtmltopdf.
Unfortunately, wkhtmltopdf is not supplied out of the box within the Acquia Cloud servers (and is not on the roadmap to be included in the future). Wkhtmltopdf also requires additional fonts for multilingual PDF generation which are not installed on the Acquia Cloud platform.
Since currently we can not comply with customers requests to install this software, we offer some workaround below.
Workarounds
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 Gitub project: https://github.com/h4cc/wkhtmltopdf-amd64 .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.
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:
- dompdf
- mPDF (only in the 7.x-2.x branch)
- TCPDF
For these options, you will be responsible to verify they are compatible with the modules and/or processes you are developing in your site.