Click or drag to resize

PdfObject.CloneTo 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:  RadPdfStandard (in RadPdfStandard.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
public PdfObject CloneTo(
	PdfPage page
)

Parameters

page
Type: RadPdf.Data.Document.Pages.PdfPage
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
This website uses cookies to identify your session and other necessary functions. By using this website, you are agreeing to our Terms of Use and Privacy Policy (updated April 26 2021).
Learn About Cookies
Got it!