[[ Bug 13146 ]] Print to PDF fails in 7DP9
Merge pull request #1024 from runrevsebastien/bugfix-13146

[[ Bug 13146 ]] Print to PDF fails in 7DP9