pdfjs/web/viewer.js
function () {
            return this._pages.map(function (pageView) {
              var viewport = pageView.pdfPage.getViewport(1);
              return {
                width: viewport.width,
                height: viewport.height
              };
            });
          }
function () {
            return this._pages.map(function (pageView) {
              var viewport = pageView.pdfPage.getViewport(1);
              return {
                width: viewport.width,
                height: viewport.height
              };
            });
          }
function ( ) { return this . _pages . map ( function ( pageView ) { var viewport = pageView . pdfPage . getViewport ( 1 ) ; return { width : viewport . width , height : viewport . height } ; } ) ; }
Returns sizes of the pages.
@returns {Array} Array of objects with width/height fields.
Returns sizes of the pages .