Subject: | Too strict wrt whitespace |
Just FYI, the PDF specification allows any amount of whitespace between the tokens in ‘Root 1 0 R’ etc. It also allows comments (starting with % and extending to the next \cm or \cj) and any of [\0\t\cj\cl\cm ]. I see code like this in your module:
$Root=int $1 if $val=~/\/Root (\d+) 0 R/s;
which only allows exactly one space character between the tokens. This means some valid PDFs will be rejected.