Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] report: support for wkhtmltopdf 0.12.5
This revision brings the compatibility for our reports using wkhtmltopdf 0.12.5. Up to now, the supported wkhtmltopdf version was 0.12.1. The goal of this revision is to add the compatibility to wkhtmltopdf 0.12.5, while keeping the same exact rendering than in 0.12.1. There is a behavior change with the `--dpi` parameter, which no longer has a "zoom" level effect as it did with 0.12.1. To deal with it, we pass the `--zoom` parameter when the detected version installed of wkhtmltopdf is after 0.12.2, with a ratio 96:dpi. 96 being the default dpi of wkhtmltopdf. This trick allows to render the reports with the exact same zoom level, whatever the dpi value configured in the reports paperformat. (at least with dpi values up to 149, after 150, included, the dpi parameter with wkhtmltopdf 0.12.1 as a weird behavior, it no longer zoom out) opw-1907346
- Loading branch information