DynaPDF Manual - Page 325

Previous Page 324   Index   Next Page 326

Function Reference
Page 325 of 770
functions before a new buffer is allocated. However, the buffer can be freed manually to reduce
memory usage.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0. This function
can normally not fail; a return value of 0 indicates that an unknown fatal error occurred.
Get3DAnnotStream
Syntax:
LBOOL pdfGet3DAnnotStream(
const PPDF* IPDF, // Instance pointer
UI32 Annot,
// 3D annotation handle
BYTE** Data,
// Pointer to PRC or U3D file buffer
UI32* Size,
// Data size in bytes
char** SubType)
// U3D or PRC
The function retrieves the data stream of a 3D annotation. At time of publication, PDF supports U3D
and PRC files. Check the value of the string SubType to determine the file type. The default format is
U3D. SubType can be NULL in this case. For PRC files, SubType is required to be present.
The function returns pointers of the original values. Do not free or change the values.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetActionCount
Syntax:
SI32 pdfGetActionCount(
const PPDF* IPDF) // Instance pointer
The function returns the number of actions contained in a document. This value can be used to
enumerate actions or to delete specific action types.
Example:
SI32 actCount = pdfGetActionCount();
for (i = 0; i < actCount; i++)
{
if (pdfGetActionType(i) == (SI32)atJavaScript)
pdfDeleteAction(i);
}
 

Previous topic: FreeUniBuf

Next topic: GetActionHandle, GetActionType