Hi Jack, Yes, please do this. Or (if you don't have JIRA account yet) I can add this. Yes, you can try to load it and check if an exception is thrown. The side effect is actual PDF loading :) (that's possible you don't need it) With best regards, Alexander Veremyev.
_____ From: Jack Sleight [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 19, 2007 4:41 PM To: Alexander Veremyev Cc: Zend Framework General Subject: Re: [fw-general] Validate PDF? Hi Alexander, Ok, should I add it to the issue tracker? In the meantime, would something like this do the job (as a quick hack): function validatePdf($fileName) { try { Zend_Pdf::load($fileName); } catch (Zend_Pdf_Exception $e) { return false; } return true; } Alexander Veremyev wrote: Hi Jack, No. But it's good idea. With best regards, Alexander Veremyev. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.487 / Virus Database: 269.13.22/1015 - Release Date: 18.09.2007 11:53 -- Jack No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.487 / Virus Database: 269.13.22/1015 - Release Date: 18.09.2007 11:53 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.487 / Virus Database: 269.13.22/1015 - Release Date: 18.09.2007 11:53
