Expose the optional UserUnit entry as a page property

This commit is contained in:
Sean Burke 2016-11-21 14:39:04 -07:00
parent 8a1ed8ab1f
commit f76cd2ce43
4 changed files with 25 additions and 3 deletions

View file

@ -747,6 +747,12 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
get ref() {
return this.pageInfo.ref;
},
/**
* @return {number} The default size of units in 1/72nds of an inch.
*/
get userUnit() {
return this.pageInfo.userUnit;
},
/**
* @return {Array} An array of the visible portion of the PDF page in the
* user space units - [x1, y1, x2, y2].