can we use pdfbox api with AEM6

Avatar

Avatar

vinodb31041851

Avatar

vinodb31041851

vinodb31041851

25-04-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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

vinodb31041851

Avatar

vinodb31041851

vinodb31041851

30-04-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.

Answers (4)

Answers (4)

Avatar

Avatar

vinodb31041851

Avatar

vinodb31041851

vinodb31041851

29-04-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.

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

26-04-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

Avatar

Avatar

vinodb31041851

Avatar

vinodb31041851

vinodb31041851

26-04-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.Screenshot 2019-04-26 at 12.42.35 PM.pngScreenshot 2019-04-26 at 12.45.12 PM.png

Avatar

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281
Gaurav-Behl
MVP

25-04-2019

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