How to extract contents of .pdf file for further manipulation using PHP?
You will need to use a PDF library in order to grab and write stuff for PDFs. An informative post about extracting contents from a PDF: http://community.livejournal.com/php/295413.html