Expand description
A library for creating n-up booklet impositions from PDF files
This library takes a PDF file and rearranges its pages into booklet order, placing multiple pages side-by-side on each output page. The output is designed to be printed and folded into a booklet.
By default, it creates 2-up booklets (2 pages per side), but can be configured for any n-up layout (3-up, 4-up, etc.).
§Example
use std::fs;
use imposer::{generate_booklet, PageSize, BookletConfig};
let input = fs::read("input.pdf").unwrap();
let output = generate_booklet(&input).unwrap();
fs::write("booklet.pdf", output).unwrap();Modules§
- imposition
- Page ordering and booklet imposition algorithms
Structs§
- Booklet
Config - Configuration options for booklet generation
Enums§
- Binding
Type - Binding type for booklet imposition
- Booklet
Error - Errors that can occur during booklet generation
- Page
Size - Standard paper sizes for booklet output
- Saddle
Stitch Pages - Valid pages per sheet for saddle stitch binding
Functions§
- generate_
booklet - Generate a booklet from a PDF byte array
- generate_
booklet_ with_ config - Generate a booklet with custom configuration
Type Aliases§
- Result
- Result type for booklet operations