Skip to main content
Level 2
Oct 8, 2024 7:57 AM UTC
Solved

Dependency conflict - Apache PDFBox

I am working on a use case in which I want to embed an image inside a PDF file. After that, I need to send it as a servelet response. 
I am using PDFBox library from Apache to do so. But, I am not able to resolve the dependencies. 

POM: 

<!-- Apache PDFBox Dependencies -->
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>fontbox</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.3.2</version>
</dependency>

error: 


In the image, the version which is mentioned in the bundles is 3.0.4 which does not exist. 

 

EstebanBustamante
EstebanBustamanteAccepted solution
Adobe Champion and Community Advisor
Oct 8, 2024 2:32 PM UTC

3 replies

EstebanBustamante
Adobe Champion and Community Advisor
EstebanBustamanteAdobe Champion and Community AdvisorAccepted solution
Adobe Champion and Community Advisor
Oct 8, 2024 2:32 PM UTC
kautuk_sahni
Level 9
Oct 16, 2024 10:27 AM UTC

@harpreetsi5 Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Translate
Kautuk Sahni
Level 2
May 16, 2025 7:22 AM UTC

Hello @harpreetsi5 

Have you implemented finally pdfbox.io? We have problems to deploy it on AEM Cloud, on local SDK it compiles and bundle is started, but on Cloud it is impossible.

Regards,

Translate