PDF to image - Maximum dimensions seem to be 842*842 ? | Community
Skip to main content
hans_thomsen
October 16, 2015
Solved

PDF to image - Maximum dimensions seem to be 842*842 ?

  • October 16, 2015
  • 2 replies
  • 669 views

I have recently started working with CQ5.6.1 - hot fix 1.

I have been creating a slideshow component for a customer:

- The slides for the customers slideshow must is composed of images.

- The source for the slideshow is a pdf.

 

We have set up a 2 process step workflow - The workflow is used on a pdf in the DAM:

1, Create sub assets

2, Run another workflow on each "Original" subasset path. (fx page 19:  /content/dam/ProductName/cq5_howto_website.pdf/subassets/page19.pdf)

The second workflow does the following:

1, Create web enabled image with arguments: dimension:1200:800,quality:100,mimetype:image/jpeg

2, Create web enabled image with arguments: dimension:1920:1200,quality:100,mimetype:image/jpeg

The results look as I would expect, at least the rendition names, fx page 19:

/content/dam/ProductName/cq5_howto_website.pdf/subassets/page19.pdf/jcr:content/renditions/cq5dam.web.1200.800.jpeg

content/dam/ProductName/cq5_howto_website.pdf/subassets/page19.pdf/jcr:content/renditions/cq5dam.web.1920.1200.jpeg

 

The problem is that if I view the image for: content/dam/ProductName/cq5_howto_website.pdf/subassets/page19.pdf/jcr:content/renditions/cq5dam.web.1920.1200.jpeg, then its dimensions are 595 x 842 - This is far less then I expected. The ratio is fine btw. I did however except the dimensions to be bigger.

842 px seem to be some kind of magical limit?

I have checked the "Original" aka /content/dam/ProductName/cq5_howto_website.pdf/subassets/page19.pdf it is a full pdf page that looks just fine (AKA, it contains text that I can copy, opens in a pdf viewer…).

I have also checked that "Day CQ DAM Buffered Image Cache", it has 2000*2000 set.

Any help would be appreciated.

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 smacdonald2008

You can explore the use of the DAM Asset API to override any dimension limit. Perhaps use this API from within a custom workflow step. That way -- you can set the image properties via the API to meet your needs:

http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/dam/api/handler/AssetHandler.html


 

2 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

You can explore the use of the DAM Asset API to override any dimension limit. Perhaps use this API from within a custom workflow step. That way -- you can set the image properties via the API to meet your needs:

http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/dam/api/handler/AssetHandler.html


 

Sham_HC
Level 10
October 16, 2015

What is the maximum layer hight & width of image passed into web rendition process?  Looks like it is less than value configured.