DynaPDF Manual - Page 95
Previous Page 94 Index Next Page 96
Tables
Page 95 of 839
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: Foreground Objects, Cell Alignment and Orientation, ColSpan, RowSpan, Page breaks
Next topic: Table Creation