Fix PDF generation for print
Merge pull request #1110 from nlegoff/fix-phras-153

[READY][3.8.6][PHRAS-153] Fix printing PDF generation