Copy(CosObject) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Copies value, and every object it reaches, from Source into Target.

public CosObject Copy(CosObject value)

Parameters

value
CosObject

An object of the source: a direct object, or a reference to an indirect one.

Returns

CosObject
The copy: for a reference, the reference to the target's copy (the same reference every time the session copies it); for a direct container, a new container to place in the target; an immutable value itself. Instance for a reference to nothing, to a page tree node, or to the source's encryption dictionary.

Remarks

ISO 32000-2 §7.3.10. A page (a dictionary whose Type is Page) is copied as CopyPage(PdfPage) copies one, inheriting through its Parent chain; every other page the graph reaches is handled as the class remarks say. A mutation of the target.