Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Hi @Shelton5C73,
Currrently there is no PDF Embed API to retreive page dimensions, but we'll consider this for future enhancements.
Thanks!