Skip to main content
vinodb31041851
Apr 25, 2019 11:50 AM UTC
Solved

can we use pdfbox api with AEM6

I am not getting the correct answer, Created an separate pdfbox osgi bundle and deployed successfully. It has active status. And project bundle is also deployed having active status.

but it gives error

java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
vinodb31041851
vinodb31041851Accepted solution
May 1, 2019 4:38 AM UTC

Yes, finally I got solutions but PDF box updated api like 2.0.14 or 1.8.16 are not resolved with AEM 6.

AEM works with very lower versions of PDFBOX only. Might be this the limitation while you are working in AEM, so keep these things in mind.

6 replies

Gaurav-Behl
Level 10
Apr 25, 2019 1:56 PM UTC

Use pdfbox bundle's symbolic name in <Require-Bundle>... </Require-Bundle> in your pom.xml under maven- bundle-plugin

Translate
vinodb31041851
Apr 26, 2019 7:20 AM UTC

I am not getting the correct answer, Created an separate pdfbox osgi bundle and deployed successfully. It has active status. And project bundle is also deployed having active status.

but it gives error

java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument

not getting the solution, can you please help me to out of this.

Translate
smacdonald2008
Level 10
Apr 26, 2019 2:18 PM UTC

We have that use case for AEM 5.6 - but it will show you how - Adobe Experience Manager Help | Creating a custom Adobe Experience Manager PDF service

Translate
vinodb31041851
Apr 30, 2019 5:39 AM UTC

Thanks, but I already read the same use case. but  I am getting the problem with AEM6, after creating the jar bundle and deployed that on instance with active status, my project bundle also in active status but not able to find the PDFBox API classes.

Translate
vinodb31041851
vinodb31041851AuthorAccepted solution
May 1, 2019 4:38 AM UTC

Yes, finally I got solutions but PDF box updated api like 2.0.14 or 1.8.16 are not resolved with AEM 6.

AEM works with very lower versions of PDFBOX only. Might be this the limitation while you are working in AEM, so keep these things in mind.

Translate
Sep 13, 2024 7:02 AM UTC

Can u please mention which version of PDFBOX worked for u?

 

Translate