Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 85

Previous Page 84   Index   Next Page 86

Tables
Page 85 of 750
The current implementation does not allow page breaks inside of cells. The contents in a cell is
always fully drawn, also if the height of a single row exceeds the maximum output height. The
function makes sure that at least one row is always drawn to avoid an endless loop.
Table and cell properties
When a table is first created, its properties are initialized to the following values:
BackgroundColor
= None (Transparent)
BackgroundColorSpace = None
Background
= None
BorderColor
= 0 (Black)
BorderColorSpace
= esDeviceRGB
BorderWidth
= 0 (Left, Right, Top, Bottom)
CellOrientation
= 0
CellSpacing
= 0 (Left, Right, Top, Bottom)
CellPadding
= 0 (Left, Right, Top, Bottom)
GridWidth
= 0 (horizontal and vertical)
GridHorzColor
= 0 (Black)
GridVertColor
= 0 (Black)
Font
= Helvetica
FontStyle
= fsRegular
FontSize
= 10.0
FontCodepage
= cp1252
FontEmbedding
= false
ImageColor
= 0 (Black) -> 1 bit images
ImageColorSpace
= esDeviceRGB
HAlign
= coLeft
VAlign
= coTop
TextColor
= 0 (Black)
TextColorSpace
= esDeviceRGB
Table color spaces
The function SetColor() sets a color and a corresponding device color space for a specific object type.
It is also possible to use extended color spaces like ICCBased, Separation or DeviceN color spaces.
Extended color spaces must be created in the PDF instance that is associated with the table. After the
color space was created it can be used with SetColorEx().
The table stores just handles of the color space so that they can be activated when the table is drawn.
Extended color spaces will be deleted when the PDF file in memory is closed or when FreePDF() will
be called. Therefore, it is not possible to draw a table into different PDF files if it uses extended color
spaces and if the required color spaces will not be recreated. Since color space handles may change
when recreated in another PDF file, all colors which use extended color spaces should be set again to
avoid issues with invalid color space handles.
 

Previous topic: Page breaks

Next topic: Table Creation