Zend Framework

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

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.5.1
  • Fix Version/s: 1.7.0
  • Component/s: Zend_Pdf
  • Labels:
    None
  • Fix Version Priority:
    Nice to Have

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!

  1. Thesis-broken.pdf
    25/Apr/08 10:32 AM
    610 kB
    Logan Buesching
  2. Thesis-works.pdf
    25/Apr/08 10:32 AM
    952 kB
    Logan Buesching

Activity

Hide
Logan Buesching added a comment -

This PDF triggers the bug

Show
Logan Buesching added a comment - This PDF triggers the bug
Hide
Logan Buesching added a comment -

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

Show
Logan Buesching added a comment - This PDF is what Evince created, and does not trigger the bug.
Hide
Wil Sinclair added a comment -

Please evaluate and fix/categorize as necessary.

Show
Wil Sinclair added a comment - Please evaluate and fix/categorize as necessary.
Hide
Alexander Veremyev added a comment -

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.

Show
Alexander Veremyev added a comment - 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.
Hide
Wil Sinclair added a comment -

Changing issues in preparation for the 1.7.0 release.

Show
Wil Sinclair added a comment - Changing issues in preparation for the 1.7.0 release.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: