zendframework / ZendPdf

BSD 3-Clause "New" or "Revised" License
88 stars 92 forks source link

Acrobat 6 & 7 support #9

Open Allyre opened 11 years ago

Allyre commented 11 years ago

Hi,

First of all, thanks for working on this new version of ZendPdf. I'm currently using ZendPdf to manipulate pdf's metadatas and it's perfectly working with all documents until version 1.4. However, as PDF versions 1.5 (Acrobat 6) and version 1.7 (Acrobat 7) aren't yet supported, I can't change metadatas on documents generated with these versions.

As google unfortunately only suggested me commercial tools to deal with that task (such as SetaPDF), I was wondering if there was a roadmap to implement Acrobat 6 and Acrobat 7 support in ZendPdf or if you knew any Open Source Php Class including this feature ?

Thanks for your help !

cdnsteve commented 11 years ago

Interesting: I'm having a smilar issue, i can read the metadata properties and set it, but when I save the file the new metadata isn't being added. $pdf = \ZendPdf\PdfDocument::load($pdfPath); $pdf->properties['Title'] = 'Manual test'; $pdf->properties['Keywords'] = "Manual test keywords"; $pdf->properties['Author'] = "Manual author"; $pdf->save($pdfPath);

Any ideas?

ashvince commented 11 years ago

I need to create an encrypted PDF so users can view and print it, but cannot edit it (it has a watermark image background to make it harder to doctor it in an image editor).

This is for generating users a certificate on the fly. Currently we use FPDF in a straight PHP page but am hoping to convert it to Zend Framework at some point. Is there any time scale on when support for recent PDF versions might be available?

saada commented 10 years ago

Will this ever get fixed?

Ocramius commented 10 years ago

@saada depends on open source contributors :-)

saada commented 10 years ago

@Ocramius... I have a workaround around to downgrade the pdf but it uses exec() and calls ghostscript. Does anybody have any suggestion for an alternative solution using pure PHP?

gulshankumar commented 8 years ago

Is there any php library available to work with PDF version 7?