DynaPDF Manual - Page 659
Previous Page 658 Index Next Page 660
Page 659 of 821
const PPDF* IPDF,
// Instance pointer
// Handle of a 3D annotation
// Length of the script
3D context of a 3D annotation but it is possible to execute a script that is assigned with the
annot = getAnnots3D(0).context3D; // Get the annotation context
If the function succeeds the return value is 1. If the function fails the return value is 0.
const PPDF* IPDF, // Instance pointer
// Value in KB
The function sets the size of the memory blocks in kilo bytes, which will be allocated if memory
must be allocated for page content streams. Memory allocation is slow, especially re-allocation of
memory by using realloc(). Because of this all content streams are buffered by DynaPDF to avoid too
much memory allocation calls. The property AllocBy defines the size of memory that is allocated
each time when more memory must be allocated.
The processing speed depends heavily on memory allocation. The default size of pre-allocated
memory for content streams is 16 KB. It can be set to a larger value if necessary to improve
However, if too much memory is allocated at runtime, processing speed will be slower and an out of
memory exception can occur. If the size is too small, processing speed is slower too because of the
many memory allocation calls.
In most cases, it is not required to change the property AllocBy.
Previous topic: SelfTest, Set3DAnnotProps
Next topic: SetAltFonts