mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Expose the optional UserUnit entry as a page property
This commit is contained in:
parent
8a1ed8ab1f
commit
f76cd2ce43
4 changed files with 25 additions and 3 deletions
|
@ -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].
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue