# TCLFPDF 1.7 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
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
SetRightMargin - set right margin
SetSubject - set document subject
SetTextColor - set text color
SetTitle - set document title
SetTopMargin - set top margin
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

# 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 SetSystemFonts 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).

## The script halt immediatly after an error. Can i get some aditional information about it?

You can use the procedure ShowMoreInfoError- in order to get some extra data.

## 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. Eventually you could put the font files that you use but not wan't/can't install in the system, for example. At the beginning the script pre-load a folder - according to platform- but you can choose other using the procedure SetUserPath.