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