yes you can do with php. php has lot of third party pdf library's.