开发者

zend_pdf can't read existing pdf

开发者 https://www.devze.com 2022-12-14 09:07 出处:网络
I\'m using Zend_Pdf to generate PDF files, based on existin开发者_StackOverflowg PDF templates. The problem is, I can\'t read any of the templates - I get a \"File is not a PDF.\" error because the fi

I'm using Zend_Pdf to generate PDF files, based on existin开发者_StackOverflowg PDF templates. The problem is, I can't read any of the templates - I get a "File is not a PDF." error because the first 4 characters in the file are "%???" instead of "%PDF" (I used "head" to check this).

Is this a character encoding problem? I believe the templates are in ISO-8859-1, must I set something in Zend_Pdf_Parser to handle this?

Thanks


to answer my own question, I moved to Perl PDF::Extract and it's working.

0

精彩评论

暂无评论...
验证码 换一张
取 消