PdfBoolean interpolate = pdfImage.getAsBoolean(PdfName.INTERPOLATE);
if (interpolate != null && interpolate.booleanValue()) {
throw new PdfAConformanceException(obj1, MessageLocalization.getComposedMessage("the.value.of.interpolate.key.shall.not.be.true"));
}
if (pdfImage != null && (pdfImage.getImage() instanceof Jpeg2000)) {
Jpeg2000 jpeg2000 = (Jpeg2000) pdfImage.getImage();
if (!jpeg2000.isJp2()) {
throw new PdfAConformanceException(MessageLocalization.getComposedMessage("only.jpx.baseline.set.of.features.shall.be.used"));
}
if (jpeg2000.getNumOfComps() != 1 && jpeg2000.getNumOfComps() != 3 && jpeg2000.getNumOfComps() != 4) {
throw new PdfAConformanceException(MessageLocalization.getComposedMessage("the.number.of.colour.channels.in.the.jpeg2000.data.shall.be.123"));
}
if (jpeg2000.getBpc() < 1 || jpeg2000.getBpc() > 38) {
throw new PdfAConformanceException(MessageLocalization.getComposedMessage("the.bit-depth.of.the.jpeg2000.data.shall.have.a.value.in.the.range.1to38"));
}
if (jpeg2000.getBpcBoxData() != null) {
throw new PdfAConformanceException(MessageLocalization.getComposedMessage("all.colour.channels.in.the.jpeg2000.data.shall.have.the.same.bit-depth"));
}
ArrayList<Jpeg2000.ColorSpecBox> colorSpecBoxes = jpeg2000.getColorSpecBoxes();
if (colorSpecBoxes != null) {
if (colorSpecBoxes.size() > 1) {
int approx0x01 = 0;
for (Jpeg2000.ColorSpecBox colorSpecBox : colorSpecBoxes) {
if (colorSpecBox.getApprox() == 1)