Skip to main content
Participating Frequently
May 31, 2021
Question

PDF Embeded api - Add Api to retrieve Page dimensions

  • May 31, 2021
  • 1 reply
  • 659 views

To place an annotation programatically exactly and center is precisely the document dimensions of the current page is required. Currently there is no api to retrieve these dimensions - In the old pdf javascript world this could be done by 

 

var rctBBox = this.getPageBox("BBox",pageNumber);

 

This can be then used to determine the dimensions of the bounding box of the annotation.

However, there is no equivalent of this in the Adobe Embedded PDF javascript API. 

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    June 17, 2021

    So far there has been no reply to my query. Just asking if there is a way to retreive the current page dimensions using the  PDF Embed API and if not whether you would be able to add this to the API as a new feature request.

    Participant
    June 17, 2021

    Hi @Shelton5C73,
    Currrently there is no PDF Embed API to retreive page dimensions, but we'll consider this for future enhancements.
    Thanks!