# Print Directives

> [HTML Version](printdirectives.htm)

Below is a list of all the available print directives, with links to extended descriptions for each.

| **Directive** | **Description** | **** | **Directive** | **Description** |
|------|------|------|------|------|
| [Totpages (%#)](totpages_pd.md) | Total pages in document |  | [SETBRUSH](setbrush_pd.md) | Sets line thickness and style for filling |
| [BIN](bin.md) | Specifies paper bin or tray |  | [SETFONT](setfont_pd.md) | Sets font |
| [DUPLEX](duplex_pd.md) | Sets DUPLEX options |  | [SETMAPMODE](setmapmode_pd.md) | Sets position for subsequent drawing |
| [ELLIPSE](ellipse_pd.md) | Draws ellipse |  | [SETOPTION](setoption_pd.md) | Enables various printing options. |
| [ESCAPE](escape_pd.md) | Passes raw ESC codes  |  | [SETPEN](setpen.md) | Sets drawing line thickness and style |
| [IMAGE](image_pd.md) | Inserts image |  | [SETPENEX](setpenex_pd.md) | Extended version of SETPEN |
| [INCLUDE](include_pd.md) | Processes external file |  |  |  |
| [LINETO](lineto_pd.md) | Draws a line |  | [SETTEXTALIGN](settextalign_pd.md) | Sets alignment method |
| [META](meta_pd.md) | Embeds meta data |  | [SETTEXTCOLOR](settextcolor_pd.md) | Sets text color |
| [METAFILE](metafile_pd.md) | Inserts metafile |  | [SETTRANSFORM](settransform_pd.md) | Transforms the coordinate space. |
| [MOVETO](moveto_pd.md) | Positions cursor |  | [SETVMI](setvmi_pd.md) | Sets vertical spacing |
| [ORIENTATION](orient-in-gdi-printing.md) | Sets landscape or portrait |  | [TEXTCENTER](textcenter_pd.md) | Outputs and centers a line of text |
| [PAPERSIZE](papersize_pd.md) | Sets paper size |  | [TEXTINDENT](textindent_pd.md) | Variation of TEXTOUT for indents |
| [PASSTHROUGH](passthrough_pd.md) | Sets printer mode |  | [TEXTOUT](textout_pd.md) | Outputs a line of text |
| [PDFX](pdfx_pd.md) | Controls PDF generation |  | [TEXTRIGHT](textright_pd.md) | Outputs a line of text right justified |
| [POLYGON](polygon_pd.md) | Draws a polygon |  | [TEXTRECTANGLE](textrectangle_pd.md) | Output multiline text into rectangle |
| [RECTANGLE](rectangle_pd.md) | Draws a rectangle |  | [XOFFSET, YOFFSET](xoffsetyoffset.md) | Makes minor positioning adjustments |
| [RESETFONT](resetfont_pd.md) | Restores original font. |  | [XORIGIN, YORIGIN](xoriginyorigin.md) | Defines offset from paper corner |
| [RESETLPP](resetlpp_pd.md) | Resets lines-per-page value |  | [XMDATA, XMFIELDS](xmdataxmfields_pd.md) | Controls XTEXT mail merge |
| [SETBKCOLOR](setbkcolor_pd.md) | Sets background color |  | [XTEXT](xtext_pd.md) | Prints text or RTF file into rectangle |


