I create my pdf document by using Adobe Acrobat Pro 9 trial to Create PDF
from Web Page, and save it as PDF Version: 1.6(Acrobat 7.x). However when I
use Zend_Pdf::load($MyFileName); to load it as a pdf object. I got
following error message as showing below:
Fatal error: Uncaught exception 'Zend_Pdf_Exception' with message 'PDF file
syntax error. Offset - 0x12BAA. Wrong W dictionary entry. Only type field of
stream entries has default value and could be zero length.' in
/var/www/ZendFramework-1.7.7/library/Zend/Pdf/Parser.php:251 Stack trace: #0
/var/www/ZendFramework-1.7.7/library/Zend/Pdf/Parser.php(455):
Zend_Pdf_Parser->_loadXRefTable('76714') #1
/var/www/ZendFramework-1.7.7/library/Zend/Pdf.php(297):
Zend_Pdf_Parser->__construct('../WebContents....',
Object(Zend_Pdf_ElementFactory_Proxy), true) #2
/var/www/ZendFramework-1.7.7/library/Zend/Pdf.php(250):
Zend_Pdf->__construct('../WebContents....', NULL, true) #3
/home/liaok/liaok/public_html/neon/InfReqFor/pdf/CreatePdfView.php(33):
Zend_Pdf::load('../WebContents....') #4 {main} thrown in
/var/www/ZendFramework-1.7.7/library/Zend/Pdf/Parser.php on line 251
It seems Zend_Pdf::load works pretty well with PDF version 1.3. I do not
know what is wrong with PDF Version 1.6. According to Zend Documents, my
current ZF 1.7.7 should support PDF Version 1.6. Any comments are highly
appreciated.
Kevin
--
View this message in context:
http://www.nabble.com/pdf-version-1.6-tp23218063p23218063.html
Sent from the Zend Framework mailing list archive at Nabble.com.