Highlighted

Trying to compress PDF files with dc-services and pdf-tools

New Here ,
Jul 20, 2020

Copy link to clipboard

Copied

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!

Topics

How to, PDF Embed API, PDF Tools API

Views

42

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Trying to compress PDF files with dc-services and pdf-tools

New Here ,
Jul 20, 2020

Copy link to clipboard

Copied

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!

Topics

How to, PDF Embed API, PDF Tools API

Views

43

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Jul 20, 2020

Copy link to clipboard

Copied

Can you share your code? Also, How does Embed API play a role in your solution?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
darvasr LATEST
New Here ,
Jul 21, 2020

Copy link to clipboard

Copied

ocrocrcompresscompress

I added the embed api through the dev console to be able to use the sdk in other projects, with private key and auth-json.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...