Skip to main content
Participant
June 20, 2020
Question

Getting the dimensions of a pdf page

  • June 20, 2020
  • 1 reply
  • 428 views

What if I want to render with a sized container? How will I know the dimensions for user provided pdfs? I like the single page rendering of this view but I need to dynamically size it since user's upload pdf  with page in both portrait and landscape orientation. 

 

 

This topic has been closed for replies.

1 reply

Legend
June 20, 2020

(This is not an answer but something to consider in your future plans) Remember that each page in a PDF may have a different size, so a robust solution might need to read the size of all pages.

tlaksAuthor
Participant
June 20, 2020

That's the exact issue we have right now. Each page has a different size so we need some way to grab the dimensions. We don't care if the page dimensions are provied per page load or as an array after the component has loaded. But yes, we need dimensions for each page: sorry if that was unclear.  

Adobe Employee
June 22, 2020

Hi, Thank you for using View SDK. We are working on this exact requirement and could be released in our upcoming releases.