PDFlib Cookbook


Text Output

avoid_linebreakingCreate a Textflow and define various options for line breaking.
bulleted_listOutput numbered and bulleted lists.

Insert a dot sequence automatically at the end of a textflow fitbox after the last word which can be showed together with the dots completely inside the fitbox.

create_interactive_indexIn a Textflow define some terms to be indexed and create a sorted index from the indexed terms.
current_text_positionDemonstrate how the current text position can be used to output simple text, text lines, or Textflows next to one another.
distance_between_paragraphsControl the distance between adjacent paragraphs.
dot_leaders_with_tabsUse leaders to fill the space defined by tabs between left-aligned and right-aligned text, such as in a table of contents.
drop_capsCreate an initial drop cap at the beginning of some text.
footnotes_in_textCreate footnotes (superscript text) in a Textflow provided with links to jump to the footnote text.
image_as_text_fill_colorCreate outline text and fill the interior of the glyphs with an image.
invisible_textOutput invisible text on top of an image.
keep_lines_togetherControl the lines kept together on the page.
leaders_in_textlineUse dot leaders to fill the space between text and a page number such as in a table of contents.
numbered_listOutput numbered lists with the numbers left- or right-aligned.
process_utf8Read text in the UTF-8 format and output it.
rotated_textCreate text output which does not run  horizontally, but at some angle.

Create a shadowed text line with the shadow option of fit_textline.

simple_stampCreate a stamp across the page which runs diagonally from one edge to the other.
starter_textflowCreate multi-column text output which may span multiple pages.
starter_textlineDemonstrate various options for placing a text line.
tabstops_in_textCreate a simple multi-column layout using tab stops.
text_as_clipping_pathOutput text filled with an image.
text on a pathCreate text on a path.
text_on_colorPlace a text line and a Textflow on a colored background.
text_with_image_clipping_pathUse the clipping path from a TIFF or JPEG image to shape text output.
textflow_with_shadingCreate multi-column output with text and use a shading where the geometry of each shading matches the respective text column.
transparent_part_of_textUse gstate in Textflow, e.g. for transparency/opacity.
transparent_textCreate some transparent text.
underlined_textCreate underlined text.
vertical_alignment_in_fitboxControl the vertical alignment of text in the fitbox.
watermarkCreate an editable watermark.
weblink_in_textCreate a Textflow and integrate colorized Web links in the text.
widows and orphansCreate multi-column text output which may span multiple pages.
wrap_text_around_imagesPlace images within a Textflow.
wrap_text_around_polygonsUse arbitrary polygons as wrapping shapes for text to wrap around.