Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

can we use pdfbox api with AEM6

Avatar

Avatar
Validate 1
Level 1
vinodb31041851
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
vinodb31041851
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
vinodb31041851
Level 1

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
Validate 1
Level 1
vinodb31041851
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
vinodb31041851
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
vinodb31041851
Level 1

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
Validate 1
Level 1
vinodb31041851
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
vinodb31041851
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
vinodb31041851
Level 1

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
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

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
Validate 1
Level 1
vinodb31041851
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
vinodb31041851
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
vinodb31041851
Level 1

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
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile
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