| 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.FourHeights.PdfToolbox.Pdf.NavigationAssembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.6+c8104d9b5f50644b2c93d424e62edbf40828fde7
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