function getPageName(size, isPortrait, pageNames) {
  const width = isPortrait ? size.width : size.height;
  const height = isPortrait ? size.height : size.width;

  return pageNames[`${width}x${height}`];
}
@typedef {import("../src/display/api.js").PDFDocumentProxy} PDFDocumentProxy