PDFlib Cookbook

cookbook

Graphics

arrows Create an arrow using different methods.
dashed_lines Create some dash patterns to be used as line styles.
fill_pattern Define some hatching patterns and use them to fill arbitrary shapes.
fill_rules Define some overlapping vector graphics and fill them using various methods.
hierarchical_layers Define a layer hierarchy using the parent and child options.
layers_and_bookmarks Define two layers and hide or show them via bookmarks.
overprinting_text Create text which will overprint other page contents instead of knocking it out.
pdfclock Create an analog clock with current time.
rounded_rectangle Create a rectangle with rounded corners.
stamp_on_print_layer Place a stamp on a layer which is only visible upon printing.
starter_graphics Create some basic examples of vector graphics.
starter_layer Define several layers, output images and text into them and define particular layers to be visible when opening the document.
starter_svg Load SVG graphics and fit into a box.
transparent_graphics Create some transparent graphics objects.