This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pass in the number of pages in your document, e.g. 8 | |
// The output is an array describing how to layout the pages for a booklet | |
// e.g. [8, 1, 2, 7, 6, 3, 4, 5] | |
// This means the front of your first sheet of paper | |
// should have pages 8 and 1 of your document side-by-side, | |
// then the back should have pages 2 and 7, then the front | |
// of your second sheet should have pages 6 and 3, etc. |