DynaPDF Manual - Page 736

Previous Page 735   Index   Next Page 737

Function Reference
Page 736 of 818
SetLicenseKey
Syntax:
LBOOL pdfSetLicenseKey(
const PPDF* IPDF,
// Instance pointer
const char* Value) // License key as string
The function sets the license key and deactivates the demo mode if the key was valid. If the value
represents a correct license key the demo string does not longer appear on PDF pages. Once a
correct key was set, it will be active until the library will be unloaded or the current PDF instance is
deleted.
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;
 

Previous topic: SetLeading

Next topic: SetLineCapStyle, SetLineDashPattern (obsolete)


Start Chat