# TCLFPDF 1.7.3 Reference Manual

AcceptPageBreak - accept or not automatic page break
AddFont - add a new font
AddLink - create an internal link
AddPage - add a new page
AliasNbPages - define an alias for number of pages
Cell - print a cell
Close - terminate the document
Error - fatal error
Footer - page footer
GetPageHeight - get current page height
GetPageWidth - get current page width
GetStringWidth - compute string length
GetX - get current x position
GetY - get current y position
Header - page header
Image - output an image
Init - initialize values (*1)
Line - draw a line
Link - put a link
Ln - line break
MultiCell - print text with line breaks
Output - save or send the document
PageNo - page number
Rect - draw a rectangle
SetAuthor - set the document author
SetAutoPageBreak - set the automatic page breaking mode
SetCompression - turn compression on or off
SetCreator - set document creator
SetDisplayMode - set display mode
SetDrawColor - set drawing color
SetFillColor - set filling color
SetFont - set font
SetFontSize - set font size
SetKeywords - associate keywords with document
SetLeftMargin - set left margin
SetLineWidth - set line width
SetLink - set internal link destination
SetMargins - set margins
SetPageOrientation - set page orientation (*2)
SetPageSize - set page size (*2)
SetRightMargin - set right margin
SetSubject - set document subject
SetTextColor - set text color
SetTitle - set document title
SetTopMargin - set top margin
SetUnit - set unit of measure (*2)
SetX - set current x position
SetXY - set current x and y positions
SetY - set current y position and optionally reset x
Text - print a string
Write - print flowing text

    *1 Obsolete since 1.7.2 . To initialize units, page size, or page orientation, you can use the SetUnit, SetPageSize, and  SetPageOrientation, respectively.

    *2 Available since 1.7.2

# F.A.Q

## The script cannot find the fonts. Can I configure where it should be searched ?

The script - according to the platform - preload the paths where search for fonts.
But if after searching in each one of these, the font can't be find, you can still use the procedure SetSystemFontsPaths for add new locations.

## How add new fonts and encodings ?

The script include some definitions files but if you need use your own you have two ways. Althoug the true type fonts are load on the fly also you can use the script makefont.tcl to generate new definitions for .otf or .pfb files (and .ttf of course).

## It seems there are some files that the script want to save but this causes an error? Can i set what folder should be used ?.

The script need a writable folder to work. This will be use to keep reusable definition files that make the process - a little - faster. At the beginning the script pre-load a folder - according to platform- but you can choose other using the procedure SetUserPath.

## What is the license of TCLFPDF ?.

See Licenses to know more about it.