Issues

ZF-3177: Exception thrown when loading PDF at Pdf/Element/Array.php:84

Description

When attempting to load the attached PDF (Thesis-broken.pdf), an exception is thrown and not caught.

Fatal error: Uncaught exception 'Exception' with message 'Undefined property: Zend_Pdf_Element_Array::$value' in ZendFramework-1.5.1/library/Zend/Pdf/Element/Array.php:84 Stack trace:

0 ZendFramework-1.5.1/library/Zend/Pdf.php(299): Zend_Pdf_Element_Array->__get('value')

1 ZendFramework-1.5.1/library/Zend/Pdf.php(242): Zend_Pdf->__construct('system/applicat...', NULL, true)

2 (my file) PDFGen.php(197): Zend_Pdf::load('system/applicat...')

I checked the PDF and it seems to load fine in Evince. When I export the pdf from Evince into a new file (Thesis-works.pdf), it then will process.

Thanks!

Comments

This PDF triggers the bug

This PDF is what Evince created, and does not trigger the bug.

Please evaluate and fix/categorize as necessary.

Fixed.

The problem was in a PDF array element used within PDF Trailer->Info object ('AAPL:Keywords' Info dictionary item). (Producer - Mac OS X 10.5.2 Quartz PDFContext)

PDF Arrays and dictionaries Info structure items are supported now.

Changing issues in preparation for the 1.7.0 release.