PDFlib Cookbook

cookbook

PDF Import

clip_imported_page Clip imported PDF page.
clone_page_boxes Clone the ArtBox, TrimBox, BleedBox, CropBox, and MediaBox entries of an imported PDF page.
crop_imported_pages Crop the pages of an existing PDF document.
fill_imported_form_fields Import all pages from a PDF document and fill form fields.
import_in_reverse_order Read the pages of an input PDF document and output them in reverse order.
import_pages_into_layers Import two pages and place them on two layers on the same output page.
import_repeated_contents In order to keep the output file size small, handles to imported PDF pages or images should be reused for repeated contents.
rotate_pages updated Rotate the pages of an existing PDF document.
scale_down_imported_pages Place A4 pages from an imported PDF as A5 pages in the output document.
shift_imported_page new Place an imported PDF page and shift it horizontally and vertically.
split_document Split PDF document in separate output documents where each output document contains a range of one or more pages from the input document.
stamp_pages Place a stamp on the pages of an existing PDF document.
starter_pcos Dump information from an existing PDF document.
starter_pdfimpose Import all pages from one or more existing PDFs, and place c x r pages on each sheet of the output PDF (imposition).
starter_pdfmerge Merge pages from multiple PDF documents.