pdf: remove code duplication and use report.printpdf() instead
pdf: remove code duplication and use report.printpdf() instead

wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI,wkitty42/fpGUI