Skip to content

Function: getDocumentSize() ​

ts
function getDocumentSize(): {
  height: number;
  width: number;
};

Returns the full document size.

Returns ​

ts
{
  height: number;
  width: number;
}

The document width and height.

height ​

ts
height: number;

width ​

ts
width: number;

Example ​

ts
getDocumentSize()
// => { width: 1440, height: 3200 }

Since ​

1.0.0

Released under the MIT License.