Update build_pdf.php