Click or drag to resize

PdfObjectCloneTo Method

Creates a new PdfObject that is a copy of the current PdfObject and adds it to a PdfPage in this or another PdfDocument.

Namespace:  RadPdf.Data.Document.Objects
Assembly:  RadPdf (in RadPdf.dll) Version: 3.44.0.0 (3.44.0.0)
Syntax
public PdfObject CloneTo(
	PdfPage page
)

Parameters

page
Type: RadPdf.Data.Document.PagesPdfPage
PdfPage to clone this object to

Return Value

Type: PdfObject
A new object that is a copy of this PdfObject.
Remarks

Form fields which are locked (IsLocked is true) and have not been unlocked (using Unlock) can not be cloned.

PdfObject instances which have a parent (e.g. Parent is not null) can not be cloned.

When cloning a PdfImageShape object to a PdfPage in a different PdfDocument, the PdfStorageProvider must be accessible.

The new PdfObject will not be committed to its destination PdfDocument until the saved (e.g. via the Save method or inside a OnDocumentSaving(DocumentSavingEventArgs) overload).

See Also