how to write a pdf file in php