zendframework/ZendPdf

Wrong check for supported PDF versions

Opened this issue · 0 comments

Not sure if I do not understand the code correctly, or the error message was not updated accordingly, but this code is somehow misleading:

https://github.com/zendframework/ZendPdf/blob/master/library/ZendPdf/PdfParser/StructureParser.php#L359-L369

From what I see it checks for PDF versions greater then 0.9 and smaller then 1.6.1. The exception tells that only 1.4 is supported.

I just realized this because I wanted to open a PDF document with version 1.6 and it does not seem to be supported.