can we use pdfbox api with AEM6 | Community
Skip to main content
vinodb31041851
New Participant
April 25, 2019
Solved

can we use pdfbox api with AEM6

  • April 25, 2019
  • 5 replies
  • 3984 views

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.
Best answer by vinodb31041851

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.

5 replies

vinodb31041851
vinodb31041851AuthorAccepted solution
New Participant
May 1, 2019

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.

New Participant
September 13, 2024

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

 

vinodb31041851
New Participant
April 30, 2019

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.

smacdonald2008
New Participant
April 26, 2019

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

vinodb31041851
New Participant
April 26, 2019

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.

Gaurav-Behl
New Participant
April 25, 2019

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