[3.8.5][PHRAS-153] Fix printing PDF generation