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

DynaPDF Manual - Page 133

Previous Page 132   Index   Next Page 134

Function Reference
Page 133 of 750
Remarks:
This function is implemented in an Ansi and Unicode compatible version. Because Unicode is not
supported by interactive form fields, it is recommended that Unicode values contain characters of
the actual used code page only. At time of publication CJK strings are not supported.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
Append
Syntax:
SI32 pdfAppend(
const PPDF* IPDF) // Instance pointer
This function appends an empty page to the document. The default page format for new created
pages is DIN A4. However, when changing the page format, the next page is created in the same
format as the previous one. The CropBox is also set to the values of the previous page. The other
bounding boxes such as ArtBox, BleedBox and so on must be set manually for each page.
The page format can be changed with the function SetPageFormat() if a predefined format should be
used, or manually with SetBBox(). SetBBox() must also be used to set a user defined bounding box
(ArtBox, BleedBox, CropBox, TrimBox).
The meaning of the bounding boxes are described under the property Get/SetBBox().
The graphics state of a new page is initialzed with the following default values:
Parameter
Data type
Initial Value
CharSpacing
float
0.0f
Clipping Path
Vector array
Crop box or Media box
DashPattern
double*
NULL (Solid line)
DashPhase
UI32
0
FillColor
BYTE[32]
Black
FillColorSpace
TExtColorSpace, IColorSpace*
esDeviceRGB, NULL
FillPattern
IPattern*
NULL
Font
IFont*
NULL
Leading
float
0.0f
LineCapStyle
TLineCapStyle
csButtCap
LineJoinStyle
TLineJoinStyle
jsMiterJoin
LineWidth
float
1.0f
Matrix
TCTM
{1, 0, 0, 1, 0, 0}
MiterLimit
float
10.0f
StrokeColor
BYTE[32]
Black
StrokeColorSpace
TExtColorSpace, IColorSpace*
esDeviceRGB, NULL
StrokePattern
IPattern*
NULL
TextDrawMode
TDrawMode
dmNormal
TextScale
float
100.0f
WordSpacing
float
0.0f
 

Previous topic: AddValToChoiceField

Next topic: ApplyPattern