PDFlib
PDFlib

Pagination

crop_page

Crop an A4 page to an A5 page.

reverse_page_order

Create pages in reverse page order.

insert_toc

Create some pages, assign labels to them and insert a table of contents at the beginning of the document.

page_sizes

Create some pages with various page sizes.

page_x_of_y

Create a running footer "Page x of y" on each page of the document.