PDFlib Cookbook



avoid_linebreaking Create a Textflow and define various options for line breaking.
bulleted_list Output numbered and bulleted lists.
continue_note_after_text Insert a dot sequence automatically at the end of a Textflow fitbox after the last word which can be shown together with the dots completely inside the fitbox.
continue_textflow_in_annotation new Continue Textflow in annotation: store overflow text in a Text annotation, also called 'sticky note'.
create_interactive_index In a Textflow define some terms to be indexed and create a sorted index from the indexed terms.
current_text_position Demonstrate how the current text position can be used to output simple text, text lines, or Textflows next to one another.
distance_between_paragraphs Control the distance between adjacent paragraphs.
dot_leaders_with_tabs Use leaders to fill the space defined by tabs between left-aligned and right-aligned text, such as in a table of contents.
drop_caps Create initial drop cap at the beginning of text.
fill_polygons_with_text Define arbitrary polygons to be filled with text.
footnotes_in_text Create footnotes (superscript text) in a Textflow provided with links to jump to the footnote text.
keep_lines_together Control the lines kept together on the page.
numbered_list Output numbered lists with the numbers left- or right-aligned.
rotated_text Create text output which does not run horizontally, but at some angle.
starter_textflow Create multi-column text output which may span multiple pages.
tabstops_in_text Create simple multi-column layout using tab stops.
text_on_color Place a text line and a Textflow on a colored background.
text_with_image_clipping_path Use the clipping path from a TIFF or JPEG image to shape text output.
textflow_with_shading Create multi-column output with text and use a shading where the geometry of each shading matches the respective text column.
transparent_part_of_text Use gstate in Textflow, e.g. for transparency/opacity.
underlined_text updated Create underlined text.
vertical_alignment_in_fitbox Control the vertical alignment of text in the fitbox.
weblink_in_text Create a Textflow and integrate colorized Web links in the text.
widows_and_orphans Create multi-column text output which may span multiple pages.
wrap_text_around_images Place images within a Textflow.
wrap_text_around_polygons Use arbitrary polygons as wrapping shapes for text to wrap around.