DynaPDF Manual - Page 515

Previous Page 514   Index   Next Page 516

Function Reference
Page 515 of 839
HaveDPartRoot
Syntax:
LBOOL pdfHaveDPartRoot(
const PPDF* IPDF) // Instance pointer
The function checks whether the PDF file in memory contains a DPartRoot dictionary.
DPart stands for Document Parts. DParts are a feature of PDF/VT, a PDF format for the printing
industry.
The function should be used to determine whether a DPart structure is already in memory, before
calling CreateDPartRoot() since the function would fail if this is the case.
An existing DPart structure can be extended with additional DPart nodes, but it is not yet possible to
edit existing nodes.
Return values:
If the document contains a DPartRoot dictionary, the return value is 1 or 0 otherwise.
HaveOpenDoc
Syntax:
LBOOL pdfHaveOpenDoc(
const PPDF* IPDF) // Instance pointer
If an error occurred it is not always clear whether the PDF file was already deleted or if it is still in
memory. Therefore, this function can be used to determine whether a PDF file is still in memory.
Return values:
If an open PDF file is in memory the return value is 1. If no open PDF file is in memory the return
value is 0.
HaveOpenPage
Syntax:
LBOOL pdfHaveOpenPage(
const PPDF* IPDF) // Instance pointer
The function returns true (1) if an open page is in memory. Otherwise the return value is false (0).
 

Previous topic: GetXFAStream, GetXFAStreamCount

Next topic: HighlightAnnot, ImportBookmarks