tags:

views:

381

answers:

2

Hi,

I wondered if it was possible to flatten PDFs using PHP? I use fpdf to create and collate from a collection of PDFs however when php has processed it some information is missing such as the comments.

I get sent several thousand PDFs every month that go on the companys website. I do need to display the comments? I Know I can flatten it down in Acrobat Pro by using the javascript debugger ( this.flattenPages() ). Is there anyway to automate and save the information using PHP? As long as its displayed on the doc im not too bothered.

Many Thanks

Mike

A: 

There are a bunch of tools mentioned here, one of which might do what you want:

Colin Pickard
+1  A: 

See Filling PDF Forms with PHP. Near exact duplicate...

PhiLho
Note that this is not a duplicate at all, although it does seem like it. OP here is trying to "flatten" annotations. The "flatten" command of pdftk does not accomplish this. Pdftk will flatten fields in a filled in form, but not annotations.
bmb