DynaPDF Manual - Page 528
Previous Page 527 Index Next Page 529

Function Reference
Page 528 of 883
GetStrokeColor
Syntax:
UI32 pdfGetStrokeColor(
const PPDF* IPDF) // Instance pointer
The function returns the current stroke color. The returned color value is not converted to the active
color space. For example, if the color space will be changed with SetColorSpace(), the color value is
still the same. Colors must be correctly defined in the current color space.
Default value = 0 (Black)
GetSubmitAction
Syntax:
LBOOL pdfGetSubmitAction(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// SubmitFormAction handle
struct TPDFSubmitFormAction* Value) // See below
struct TPDFSubmitFormAction
{
UI32
StructSize;
// Must be set to sizeof(TSubmitFormAction)
const char*
CharSet;
// Optional charset in which the form should be submitted.
const void** Fields;
// Array of field pointers -> GetFieldEx2().
UI32
FieldsCount;
// Number of fields in the array.
TSubmitFlags Flags;
// Various flags, see CreateSubmitAction().
const char* URL;
// The URL of the script that will process the
// submission.
SI32
NextAction;
// -1 or next action handle to be executed if any
TActionType
NextActionType; // Only set if NextAction is >= 0.
};
The function returns the properties of a Submit Form Action. The member StructSize must be
initialized with the structure size 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.
GetSVGSize
Syntax:
LBOOL pdfGetSVGSize(
const ISVG* ISVG,
// Instance pointer
const char* SymbolID, // SymbolID or NULL
double* Width,
// Out -> The calculated width of the graphic
double* Height)
// Out -> The calculated height of the graphic
The function retrieves the width and height of a SVG graphic. The parameter SymbolID is optional, it
can be used to load a specific symbol of a SVG symbol file.
SVG files are available in different flavors. Regular SVG files contain exactly one graphic but SVG
files can also contain more than one graphic or symbol. Such symbol files contain no visible graphic
Previous topic: GetSpaceWidth
Next topic: GetSVGSymbolCount, GetSVGSymbolName