I inherited zend_pdf and wrote a static method.
Public static function load ($ source = NULL, $ revision = NULL)
{
Return new dhr_pdf ($ source, $ revision, true );
}
Then an error occurs during access through $ PDF = dhr_pdf: load ($ salespdfpath );
The following error occurred:
Exception 'zend _ end _exception' with message' cross-reference streams are not supported yet. 'In c: \ Users \ n. zhang \ Documents \ tools \ library \ Zend \ PDF \ parser. PHP: 331 stack trace: #0 C: \ Users \ n. zhang \ Documents \ tools \ library \ Zend \ PDF \ parser. PHP (455): zend_pai_parser-> _ loadxreftable ('000000') #1 c: \ Users \ n. zhang \ Documents \ tools \ library \ Zend \ PDF. PHP (289): zend_pai_parser->__ construct ('Public/files/sa... ', object (zend_cmd_elementfactory_proxy), true) #2 c: \ Users \ n. zhang \ Documents \ tools \ library \ DHR \ PDF. PHP (8): zend_pdf->__ construct ('Public/files/sa... ', null, true) #3 c: \ Users \ n. zhang \ Documents \ tools \ Application \ Default \ controllers \ Alibaba controller. PHP (106): dhr_pdf: load ('Public/files/sa... ') #4 c: \ Users \ n. zhang \ Documents \ tools \ library \ Zend \ controller \ action. PHP (502): Ingress controller-> salespdfaction () #5 c: \ Users \ n. zhang \ Documents \ tools \ library \ Zend \ controller \ dispatcher \ Standard. PHP (293): zend_controller_action-> dispatch ('salespdfaction ') #6 c: \ Users \ n. zhang \ Documents \ tools \ library \ Zend \ controller \ front. PHP (946): zend_controller_dispatcher_standard-> dispatch (Object (zend_controller_request_http), object (zend_controller_response_http) #7 c: \ Users \ n. zhang \ Documents \ tools \ Application \ Bootstrap. PHP (30): zend_controller_front-> dispatch () #8 c: \ Users \ n. zhang \ Documents \ tools \ index. PHP (6): require_once ('C: \ Users \ n. zhan... ') #9 {main}
The PDF version is detected later.
Now the Zend Framework Version I used is 1.06 and accessed through the load static method. The above error occurs.
The previously supported PDF version is 1.4, And the 1.6 PDF version has such a problem.
If you change the version of the imported PDF template to 1.4, this problem can be solved.
Of course, it is not necessarily 1.4. The most important issue is a version.