Remember
this post? I immediately bookmarked it, and the next day I read a freshly printed book with great pleasure. I do not remember how many of them (printed books) were. But I am sure that I was not the only one doing this. Why? There is not always a book on sale that is needed right now. Yes, and saves money.
Anyone who has tried to print books himself knows that the printing process requires care and accuracy. We print 16 pages (4 sheets of A4 format, 2 pages of a book on each side of the sheet) in such a way, by folding this pile in half, to get a notebook, in which the pages go in order, as in a book. From these notebooks the book itself will then be sewn together.
In the above post, the author uses the program OpenOffice.org Calc (you can also excel) to get the desired sequence of printed pages. For example, to print the first 16 pages of a book, you must first print pages 16, 1, 14, 3, 12, 5, 10, 7 on the print side. And on the back side, print pages - 2, 15, 4, 13, 6 , 11, 8, 9.
')
Working with this table is not always convenient, in terms of obtaining a new sequence of pages for a new book. The number of pages in a book is not always a multiple of the number of pages in one “notebook”, not even always a multiple of 4th. You do not always want to print 16 pages, you can by 32, by 24.
In general, I decided to make my own page sorter, in which
such troubles would
not have been present, these little things were present. Here's what I got.
We swing from hereOr from hereOr do not swingHow to work with him
The sorter is written in JavaScript (guess what the last books I printed were about), plus some html and css, therefore all that is required for using it is a browser with JavaScript enabled.
We start. We see a small form.

1. First page - in case the book should not be printed from the first page (default 1)
2. Last page - if, suddenly, only part of the book is needed
3. Pages in a bundle - the same as the pages in the notebook above in the text (must be a multiple of 4)
4. Any blank page - will be inserted into the last link instead of missing pages, if it turns out that the number of pages in it is not a multiple of 4th. It is better to put the number of the cleanest page in the book, such often between chapters, parts or sections.
Click the button "Calculate" and immediately get the result.

Pay attention to the last link - the missing pages are filled with page number 3.
PS
The sorter passed the test on the book with 984 pages.
Tell me where to fill the sorter, otherwise it will last only until September 30th on iFolder.
Added more links to the sorter.
09/14/11 - added sorting for a two-sided printer, updated links accordingly