getPageHeight method

double getPageHeight(
  1. int index
)

Get page height for a specific page index.

Implementation

double getPageHeight(int index) {
  if (index >= 0 && index < pageCount) {
    return document.pages[index].height;
  }
  return 792; // default US Letter height
}