DynaPDF Manual - Page 449

Previous Page 448   Index   Next Page 450

Function Reference
Page 449 of 821
GetNamedDest
Syntax:
LBOOL pdfGetNamedDest(
const PPDF* IPDF,
// Instance pointer
UI32 Index,
// Array index
struct TPDFNamedDest* Dest) // see below
struct TPDFNamedDest
{
UI32
StructSize;
// Must be set to sizeof(TPDFNamedDest)
const char*
NameA;
// The destination name
const UI16*
NameW;
// The destination name
UI32
NameLen;
// Length in characters
const char*
DestFileA;
// If set, the destination is located in
const UI16*
DestFileW;
// this file
UI32
DestFileLen; // Length in characters
SI32
DestPage;
// Destination page number
struct TPDFRect DestPos;
// Destination position
TDestType
DestType;
// Destination type
};
The function returns the properties of a named destination. The member StructSize must be
initialized to sizeof(TPDFNamedDest) before the function can be called. The structure size is used to
identify different versions of the structure.
The interpretion of the member DestPos depends on the destination type. The different destination
types are described in detail at SetBookmarkDest(). If DestFileA or DestFileW is set then the
destination is located in this PDF file. Only one string format is set at time.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetNamedDestCount
Syntax:
SI32 pdfGetNamedDestCount(
const PPDF* IPDF) // Instance pointer
The function returns the number of named destinations in the PDF file. The named destinations of
an external PDF file are available after the PDF file was imported.
GetNeedAppearance
Syntax:
LBOOL pdfGetNeedAppearance(
const PPDF* IPDF) // Instance pointer
The function returns true if the global NeedAppearance flag of the AcroForm is set. See
SetNeedAppearance() for further information.
 

Previous topic: GetNamedAction

Next topic: GetNumberFormatObj


Start Chat