improvements to MakePDF