On line guide/help

You are on page 14 of the online help. Navigate sequentially through the guide pages or search for a topic of interest to you.

Index Prev. Next

Content

Content section

This section groups together all the basic elements to be printed in the PDF (for example, text, lines, circles, barcodes, images, graphics, etc.). It's usually the section that contains the most code. It can be placed anywhere within the main section, but it's best to place it at the end to improve the readability of the other sections.

Elements / attributes of the <content> element grouped by functionality.

Generic commands:
<id> Content identifier used by print_content to identify the content to retrieve
<page> Create a new page. If you control page creation in the section element, do not use the page command in the content section.
<var> (alias: <setvar>, <set_var>) Set the value of a variable
<rem> (alias: <comment>) Comments, notes, various memos

Basic draw commands:
<line> Draw a line using the current line style or a custom line style
<box> or <text> Write a text in a box area
<rectange> or <rect> Draw a rectangle
<circle> Draw a circle
<barcode> Draw a barcode
<image> Draw a picture

Chart commands:
<piechart> Draw a pie / ring chart
<singlebarchart> Draw a single bar chart
<gaugechart> Draw a gauge chart
<kpichart> Draw a KPI chart

Setup commands:
<font> Set the current font style (font name, size, color, ..)
<linestyle> Set the current line style (type, width, color, ..)
<fillstyle> or <fill> Set current fill style (type, color, ..)
<opacity> (alias: <alphacolor>, <alpha>) Set current draw opacity (transparency)