Skip to content

Commit

Permalink
Fix issue with non-duplexed aggregate side 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Cocoa committed Feb 17, 2024
1 parent ecdd4f6 commit 14f2d8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/book.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ export class Book {
const generateSignatures = this.print_file != 'aggregated';
const side1PageNumbers = new Set(
this.rearrangedpages.reduce((accumulator, currentValue) => {
return accumulator.concat(currentValue[0]);
const pageNums = currentValue[0].map((pageInfo) => pageInfo.info);
return accumulator.concat(pageNums);
}, [])
);
const [pdf0PageNumbers, pdf1PageNumbers] =
Expand Down

0 comments on commit 14f2d8b

Please sign in to comment.