@retric/makebook
v0.1.0-rc1
Published
CLI tool to convert PDFs into booklet-printable PDFs (scaffold)
Readme
makebook
A CLI tool to convert a regular PDF into a booklet-printable PDF (scaffold).
Features included in this scaffold:
- TypeScript + pnpm project setup
- CLI wiring using
commander - Basic converter that loads a PDF, pads it to a multiple of 4 pages, and writes an output PDF
- Placeholders and TODOs for imposition / 2-up layout and signatures
Quick start
- Install dependencies (pnpm is recommended):
pnpm install- Build:
pnpm run build- Run (dev mode):
pnpm run dev -- input.pdf -o output.pdfNext steps
- Implement page imposition (2-up/4-up) to lay out pages for booklet printing
- Add tests and sample PDFs
- Add options for page size and signatures
