| OutlineItemCopy Method |
Copy an outline item
Copy an outline item object including all descendants from an input document to the given
targetDocument.
The returned object is associated with the given target document but not yet part of it.
Namespace: PdfTools.Toolbox.Pdf.NavigationAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.4.0+02318d3e3f9645a1305b87026fb971a660079e54
Syntax public static OutlineItem Copy(
Document targetDocument,
OutlineItem outlineItem,
OutlineCopyOptions options
)
Parameters
- targetDocument Document
-
the output document with which the returned object is associated
- outlineItem OutlineItem
-
An outline item of a different document
- options OutlineCopyOptions
-
The options used to copy the item
Return Value
OutlineItem
The copied outline item, associated with the current document.
Exceptions Exception | Condition |
---|
ConformanceException | The conformance level of the source document is not compatible
with the conformance level of the target document. |
ArgumentException | if the targetDocument argument is |
ArgumentException | if the targetDocument argument has already been closed |
ArgumentException | if the targetDocument argument is read-only |
ArgumentException | if the outlineItem argument is not associated with an input document |
ArgumentException | the target document contains implicitly copied outline items |
ArgumentException | the outlineItem argument is |
ArgumentException | the outlineItem argument is not associated with an input document |
IOException | Error reading from the source document or writing to the target document |
ArgumentNullException | if targetDocument is . |
ArgumentNullException | if outlineItem is . |
See Also