Click or drag to resize
Pdftools logo

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.Navigation
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.4.0+02318d3e3f9645a1305b87026fb971a660079e54
Syntax
C#
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
ExceptionCondition
ConformanceExceptionThe conformance level of the source document is not compatible with the conformance level of the target document.
ArgumentExceptionif the targetDocument argument is
ArgumentExceptionif the targetDocument argument has already been closed
ArgumentExceptionif the targetDocument argument is read-only
ArgumentExceptionif the outlineItem argument is not associated with an input document
ArgumentExceptionthe target document contains implicitly copied outline items
ArgumentExceptionthe outlineItem argument is
ArgumentExceptionthe outlineItem argument is not associated with an input document
IOExceptionError reading from the source document or writing to the target document
ArgumentNullExceptionif targetDocument is .
ArgumentNullExceptionif outlineItem is .
See Also