utils: Fix typos in generate_pdf