DynaPDF Manual - Page 327

Previous Page 326   Index   Next Page 328

Function Reference
Page 327 of 839
DeleteOCUINode
Syntax:
LBOOL pdfDeleteOCUINode(
const PPDF* IPDF, // Instance pointer
IOCN* Node)
// Node to delete or NULL to delete all UI nodes
The function deletes an OCUINode (Optional Content User Interface Node) from the display tree of
the currently active layer configuration or the entire tree if Node is set to NULL.
Notice:
If the PDF file was not imported with ImportPDFFile() the function ImportOCProperties() must
be called in order to import the global Optional Content Properties.
It is also required to load a layer configuration with LoadLayerConfig() before the function can
be called.
Note that the deletion of the display tree does not delete any layer or OCG (Optional Content
Group). All OCGs still exists and are fully functional. However, users are not able to change the
visibility state of OCGs which are not included in the display tree of the corresponding layer
configuration.
If the parameter Node is set then it must be a valid pointer of an OCUINode that was returned by
GetOCUINode(). Note that the deletion of a node invalidates all pointers which were previously
returned by GetOCUINode().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
DeleteOutputIntent
Syntax:
SI32 pdfDeleteOutputIntent(
const PPDF* IPDF, // Instance pointer
SI32 Index)
// Array index or -1 to delete all intents
The function can be used to delete a specific or all output intents. A PDF file can contain more than
one output intent. Call GetOutputIntentCount() to determine the number of available output
intents. If the parameter Index is set to -1 all output intents will be deleted.
Return values:
If the function succeeds the return value is the remaining number of output intents. If the function
fails the return value is a negative error code.
 

Previous topic: DeleteNamedDestByIndex, DeleteOCGFromDisplayTree

Next topic: DeletePage, DeletePageLabels, DeletePDF, DeleteRasterizer (Rendering Engine)