PDFlib Cookbook

cookbook

Pagination

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 different sizes.
page_x_of_y Create a running footer "Page x of y" on each page of the document.
reverse_page_order Create pages in reverse page order.