Generate booklet from pdf file
Sometime we want to print a pdf file as a booklet, so we need to change the page order of the pdf file. I wrote a script with nodejs to…
Sometime we want to print a pdf file as a booklet, so we need to change the page order of the pdf file. I wrote a script with nodejs to change the order of the pages, but it depends on the nodejs version, after I upgrade the nodejs, it can’t work anymore, so I want to implement it with golang, and I try to find a golang SDK to operate the pdf, and find the pdfcpu, and find it already has booklet command, thanks very much!
The command to change a pdf to a booklet is like below: