DynaPDF Manual - Page 468

Previous Page 467   Index   Next Page 469

Function Reference
Page 468 of 860
The y-coordinate is the position of the text's baseline measured in bottom-up coordinates.
Note that the reference point of WriteFText() is the baseline plus font size, independent of the
current coordinate system. In contrast, the reference point of WriteText() is the baseline if bottom up
coordinates are active and the baseline plus font size if top down coordinates are active (see
SetPageCoords() for further information).
Return values:
If the function succeeds the return value is the x- or y-coordinate. This value can be negative
depending on the coordinate where the string was placed. If the function fails the return value is a
negative error code. An error code is smaller than -33554531.0.
GetLaunchAction
Syntax:
LBOOL pdfGetLaunchAction(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// Action handle
struct TPDFLaunchAction* Action) // see below
struct TPDFLaunchAction
{
UI32
StructSize;
// Must be set to sizeof(TPDFLaunchAction).
const char* AppName;
// Optional. The name of the app that should be launched.
const char* DefDir;
// Optional default directory.
IFSR*
File;
// see GetFileSpec().
SI32
NewWindow;
// -1 = viewer default, 0 = false, 1 = true.
SI32
NextAction;
// -1 or next action handle to be executed if any.
TActionType NextActionType; // Only set if NextAction is >= 0.
const char* Operation;
// Optional. The operation to perform (open or print).
const char* Parameter;
// Optional parameter that shall be passed to the app.
};
The function retrieves the properties of a launch action. The member StructSize must be set to
sizeof(TPDFLaunchAction) before the function can be called.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: GetLastTextPosXAbs, GetLastTextPosYAbs

Next topic: GetLayerConfig, GetLayerConfigCount