Build PDF improvements