I am currently parsing a PDF file using iText, and I encountered an image format which is not supported:
com.itextpdf.text.exceptions.UnsupportedPdfException: The filter /JPXDecode is not supported. It seems that the information in the raw byte array is JPEG data, without the header information, as the file command line utility indicates:
83.jpg: JPEG 2000 image data My first idea would be to simple add the header metadata to these files, but I simply don't know how.
How can I add the header metadata to a raw piece of JPEG 2000 data ? A solution using iText would work as well.