How to crop continus pdf books?

Inspired by this blog post article by Jadi In there he use convert but I want to higher level program.

Khaterate Haj sayyah esfahani(خاطرات حاج سیاح اصفهانی) is our source.

convet pdf file to two coloumn

$ sudo apt install mutool
$ mutool poster -x 2 haj_sayah.pdf output.pdf

Unfortunatley pages in output file wrong ordered

Why? Persian written from Right to Left side, pages in Persian books arranges in reverse order.

So cropping each pages and append them work for default Left to Right languages like English and Messing up the order of Persian book.

Here We need reorder pages in a manner to swap each even page with odd one.

Reverse order of page for Persian books

We swap even with odd pages.

$ sudo apt install pdftk
$ pdftk output.pdf shuffle even odd output haj_sayyah_.pdf

<
Previous Post
(حتی) یا (حتا)؟
>
Next Post
Poet