DynaPDF Manual - Page 505

Previous Page 504   Index   Next Page 506

Function Reference
Page 505 of 839
GetTrapped
Syntax:
LBOOL pdfGetTrapped(
const PPDF* IPDF) // Instance pointer
The function returns the trapped key of the document. The default value is false. However, the real
default value is unknown that means the key is not written to the file. The trapped key must be set
with SetTrapped() if it should written to the file.
GetTypoLeading
Syntax:
double pdfGetTypoLeading(
const PPDF* IPDF) // Instance pointer
The function returns the typographic leading or line height of a font. This is sTypoAscender -
sTypoDescender + sTypoLineGap of the OS/2 table of TrueType and OpenType fonts. The value is
scaled to the current font size. Type1 fonts do not support these metrics.
The function can be called after a font was activated in the graphics state, e.g. with SetFont(),
SetFontEx(), SetCIDFont(), or ChangeFont().
If typographic metrics are not available the return value is Ascent - Descent. If the value is smaller
than the font size then the font size is returned.
Return values:
If the function succeeds the return value is the typographic leading of the active font, this is a value
greater zero. If the function fails the return value is a negative error code.
GetURIAction
Syntax:
LBOOL pdfGetURIAction(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// Action handle
struct TPDFURIAction* Action) // see below
struct TPDFURIAction
{
UI32
StructSize;
// Must be set to sizeof(TPDFURIAction)
const char* BaseURL;
// Optional, if defined in the Catalog object.
LBOOL
IsMap;
// A flag specifying whether to track the mouse position
// when the URI is resolved: e.g. http://test.org?50,70.
const char* URI;
// Uniform Resource Identifier.
SI32
NextAction;
// -1 or next action handle to be executed if any.
TActionType NextActionType; // Only set if NextAction is >= 0.
};
The function retrieves the properties of a URI action. The member StructSize must be set to
sizeof(TPDFURIAction) before the function can be called.
 

Previous topic: GetTextWidthEx, GetTransparentColor

Next topic: GetUseExactPwd, GetUseGlobalImpFiles