pdf generation is now conditioned by presence of gd extention