diff --git a/package.json b/package.json index 78df06c..d97f2d8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bookbinder", - "version": "1.3.1", + "version": "1.3.2", "description": "An app to rearrange PDF pages for printing for bookbinding", "type": "module", "scripts": { diff --git a/src/book.js b/src/book.js index cf7484d..cfdeb2e 100644 --- a/src/book.js +++ b/src/book.js @@ -116,7 +116,7 @@ export class Book { * Populates [this.orderedpages] (array [0, 1, ... this.page_sheets * # of sheets]) */ createpagelist() { - this.pagecount = (this.managedDoc == null) ? this.currentdoc.getPageCount() : this.managedDoc.getPageCount(); + this.pagecount = this.currentdoc.getPageCount(); this.orderedpages = Array.from({ length: this.pagecount }, (x, i) => i); if (this.flyleaf) {