DynaPDF Manual - Page 708

Previous Page 707   Index   Next Page 709

Function Reference
Page 708 of 787
Note that the key must be set for each PDF instance or process of a multi-threading application.
To determine whether a specific function is available in DynaPDF Starter or Lite, pass the string
"Starter" or "Lite" to the function; all functions which are disabled in these versions produce then an
error. It is a good idea to set an error callback function so that you can see all errors…
Notice: The license key must not be stored in the registry or other files in an unencrypted form.
Return values:
The function returns true whether or not the key was valid!
If the key is valid but expired, then the return value is false.
The recommended way to apply the license key is as follows:
// Check first whether the right version of the dynapdf.dll was loaded and
// then set the license key.
char* ver = pdfGetDynaPDFVersionInt();
if (ver[0] <= 40450131 || pdfSetLicenseKey(pdf, "...") == false)
{
throw("Wrong dynapdf.dll version loaded!");
}
SetLineAnnotParms
Syntax:
LBOOL pdfSetLineAnnotParms(
const PPDF* IPDF, // Instance pointer
UI32 Handle,
// Handle of a line annotation
SI32 FontHandle,
// Font handle or -1 for Helvetica
double FontSize,
// Font size of the caption or zero
struct TLineAnnotParms* Parms) // Can be NULL to delete all measure
// line specific values
typedef enum
{
cpInline, // The caption is centered inside the line
cpTop
// The caption is drawn on top of the line
}TLineCaptionPos;
struct TLineAnnotParms
{
UI32 StructSize;
// Must be set to sizeof(TLineAnnotParms)
LBOOL Caption;
// See description
float CaptionOffsetX;
// Horizontal offset of the caption
float CaptionOffsetY;
// Vertical offset of the caption
TLineCaptionPos CaptionPos; // See enum TLineCaptionPos
float LeaderLineLen;
// Length of the leader lines
float LeaderLineExtend; // Leader line extend (must be positive or 0)
float LeaderLineOffset; // Amount of space between the endpoints of the
// annotation and the leader lines (must be a
// positive value or zero)
};
 

Previous topic: SetLeading, SetLicenseKey

Next topic: SetLineCapStyle, SetLineDashPattern (obsolete)

Start Chat