PDFlib Cookbook

cookbook

Tables

align_decimals Align decimal numbers in a table.
colorize_cells Provide some table cells with a colored background.
fit_annotation_into_cell Fit link annotation into a table cell.
fit_formfield_into_cell Fit a form field into a table cell, e.g. to create a pushbutton in the cell.
mixed_table_contents Demonstrate how to place various kinds of contents in table cells spanning one or more columns or rows.
nested_tables Place a sub-table in one table cell.
repeat_cell_contents Show how table cell contents will be repeated on the next table instance if a cell or a row is split.
spread_oversized_table Output a table on 2 x m pages as it is needed to fit it completely.
spread_text_over_cells Use the 'continue' option of add_table_cell() to continue a Textflow in another cell.
starter_table Create table which may span multiple pages.
table_contact_sheet Create a contact sheet with photos and their labels.
table_invoice Create an invoice using the table formatter.
table_rotated_text Create a table containing rotated text.
table_row_height Define the height of the rows in a table.
table_schedule Create a weekly booking plan for the meeting rooms of a company.
table_timesheet Create a time sheet for the working hours of an employee.
vertical_text_alignment Demonstrate vertical alignment of text lines and Textflows in a table cell.