PDF: fix openjpeg issue 362