Question
Trying to compress PDF files with dc-services and pdf-tools
I am trying to implemet a REST Api in Spring Boot to OCR and compress my pdf files. The OCR operation is working fine, but when I try to compress them I get the following error:
java.lang.NoSuchMethodError: com.adobe.platform.operation.internal.api.CPFApi.cpfPredictApi(Lcom/adobe/platform/operation/internal/InternalExecutionContext;Lcom/adobe/platform/operation/internal/cpf/dto/request/ContentAnalyzerRequests;Ljava/util/List;Ljava/lang/Class;Ljava/lang/String;)Lcom/adobe/platform/operation/internal/http/HttpResponse;
I have these two dependencies in my pom:
<dependency>
<groupId>com.adobe.documentcloud</groupId>
<artifactId>dc-services-sdk</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>com.adobe.documentservices</groupId>
<artifactId>pdftools-sdk</artifactId>
<version>1.1.0</version>
</dependency>
</dependencies>
And through the developer console I've already added the PDF Embed API. What am I doing wrong?
Thank you in advance!
