Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 343

Previous Page 342   Index   Next Page 344

Function Reference
Page 343 of 750
GetDocInfoCount
Syntax:
SI32 pdfGetDocInfoCount(
const PPDF* IPDF) // Instance pointer
The function returns the number of document info entries defined in the document. This function
can be used in combination with GetDocInfoEx() to enumerate the document info entries of the PDF
file.
GetDocInfoEx
Syntax:
SI32 pdfGetDocInfoEx(
const PPDF* IPDF,
// Instance pointer
UI32 Index,
// Entry index
TDocumentInfo ADDR DInfo, // Document info entry type
char* ADDR Key,
// Only set for user defined keys
char* ADDR Value,
// The value of the info entry
LBOOL ADDR Unicode)
// Is value in Unicode format?
The function returns a document info entry. The parameter Index must be a valid index into the array
of document info entries. The number of available entries is returned by GetDocInfoCount(). The
parameter Value holds a pointer to the original value, it must not be NULL. Do not change or free the
value. If the parameter Unicode is true, the value is a Unicode string. Make a type cast to UI16* in this
case. The parameter Key contains always an Ansi string if set (user defined keys only).
Return values:
If the function succeeds the return value is the string length in characters of the parameter Value.
Depending on the string format make a type cast to UI16*.
GetDocUsesTransparency
Syntax:
LBOOL pdfGetDocUsesTransparency(
const PPDF* IPDF, // Instance pointer
UI32 Flags)
// No flags defined yet, the parameter is ignored
The function checks whether a PDF file uses native PDF Transparency (PDF 1.4). The file uses
transparency when it contains soft masks, blend modes other than Normal, or fill or stroke alpha
values smaller than 1.0.
The function checks all pages, templates, extended graphics states, images, annotations, and form
fields.
Return values:
If the file uses transparency the return value is 1. If it uses no transparency the return value is 0.
 

Previous topic: GetDocInfo

Next topic: GetDynaPDFVersionInt