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

How to change CQ5.6.1 dam path to local file path like c:\\x\y\z to dam path -

Avatar

Avatar
Validate 10
Level 2
rahul_kumar11
Level 2

Likes

3 likes

Total Posts

36 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
rahul_kumar11
Level 2

Likes

3 likes

Total Posts

36 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile
rahul_kumar11
Level 2

15-10-2015

Hello, 

          My requirement is to convert pdf to jpg format i have used  PDFBOX api   i have used file input stream and .am able to convert pdf to image by giving static path but if i tried with dynamically providing the dam pdf file path to this api; it is showing me error in this line.

PDDocument doc=PDDocument.load(new FileInputStream(s));

Where s is the path of the file in DAM . I am getting exception like :-The system cannot find the path specified

 

The possible error I can think of is that fileinputstream takes the local file path 

 

Can anybody provide me a solution so as to how can we use the dam file path in inputfilestream I also used DAMUtil to get the assetbinary pat; but got the same error.

 

Or any other way to convert the pdf file to image in cq5?

Please provide solutions . I would be highly obliged.

 

Thanks,

View Entire Topic

Avatar

Avatar
Validate 10
Level 2
rahul_kumar11
Level 2

Likes

3 likes

Total Posts

36 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
rahul_kumar11
Level 2

Likes

3 likes

Total Posts

36 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile
rahul_kumar11
Level 2

15-10-2015

Thanks sam

I got solution with your reply.