momijizukamori/bookbinder-js

Option for right-binding books

Opened this issue · 2 comments

Is it possible to add a booklet option for right-to-left languages like Arabic, Hebrew, (vertical) Japanese, and so on? For right-to-left scripts, the spine is on the right.

Thank you for your excellent work.

For now, a possible workaround would be:

  • sort the PDF in reverse order (one may consider pdftk from PDF Labs)
    pdftk input.pdf cat 32-1 output reverse.pdf (this sorts a 32-page PDF in reverse)
  • use the reversed PDF for the Bookbinder JS.

Successfully tested with 8-, 16-page booklets, and 8-page single-sheet-zine.

This approach may fail when the number of signatures isn't a whole number (for example, a 120-page book printed in 16-page signatures would have 7.5 signatures; of course, in reality, it will be 8).

I think this would be a good enhancement, and would also be work towards some more complex implementations of #11