DynaPDF Manual - Page 375

Previous Page 374   Index   Next Page 376

Function Reference
Page 375 of 839
This function returns the properties of a bookmark. The parameter Bmk is required it must not be
NULL. The member Style is a bitmask, maybe more than one constant is set at time, i.e. bmsBold and
bmsItalic. The destination types are described in detail at SetBookmarkDest().
Return values:
If the function succeeds the return value is 1 and the structure Bmk is filled with values. If the
function fails the return value is 0.
GetBookmarkCount
Syntax:
SI32 pdfGetBookmarkCount(
const PPDF* IPDF) // Instance pointer
The function returns the number of bookmarks defined in the document.
GetBorderStyle
Syntax:
SI32 pdfGetBorderStyle(
const PPDF* IPDF) // Instance pointer
typedef enum
{
bsSolid
= 0, // Solid border
bsBevelled
= 1, // Bevelled border
bsInset
= 2, // Inset border
bsUnderline
= 3, // Underline only
bsDashed
= 4, // Dashed border
bsUserDefined = 5
// Internal, cannot occur
}TBorderStyle;
The function returns the global border style which is used for newly created Interactive Form fields.
To determine the style of a specific field use the function GetFieldBorderStyle().
GetBuffer
Syntax:
char* pdfGetBuffer(
const PPDF* IPDF,
// Instance pointer
UI32 ADDR BufSize) // Buffer length in bytes
The function returns a pointer to the buffer of a memory based PDF file. A memory based PDF file
will be created if the parameter OutFile of the function CreateNewPDF() is an empty string or set to
NULL.
The parameter BufSize is set to the size of the buffer in bytes. The returned pointer is a pointer to the
original buffer; it must not be freed or changed. When the buffer is not longer needed call FreePDF()
to release the PDF file.
 

Previous topic: GetBookmark (obsolete), GetBookmarkEx

Next topic: GetCapHeight, GetCharacterSpacing