[Reporting] Fix make_pdf function.