We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose PDF Api for Java, getColorType issue

We do have requirement for identifying color type for RGB,B&W and Grey and facing issues as API is treating B&W and Grey PDF Documents as Color.
API is treating Color type for Black&White and Grey as 0, it supposed to be 2 and 1 respectively.
Please help me.

Thanks ,
Srini

@ssrao73

Thank you for contacting support.

Please visit ColorType Class and then share narrowed down code snippet along with respective PDF documents so that we may try to reproduce and investigate it in our environment. Before sharing requested data, please ensure using Aspose.PDF for Java 19.1.

Thanks for your inputs, will try with latest version once.

We tried with Latest version and getting below exception. We are using java version 1.7. I see in the release notes it supports from 1.6

java.lang.UnsupportedClassVersionError: com/aspose/pdf/License : Unsupported major.minor version 52.0

@ssrao73

Please ensure using aspose-pdf-19.1-jdk17.jar and then share your kind feedback with us.