Table of Contents

Method CreateXObject

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

CreateXObject()

Creates a new XObject that can be used with one of the DrawXObject methods.

public PdfXObject CreateXObject()

Returns

PdfXObject

The newly created PdfXObject.

Remarks

Check out how to use XObjects when creating watermarks and backgrounds..

CreateXObject(PdfPage)

Creates a new XObject using a page as template. The created XObject can be used with one of the DrawXObject methods.

public PdfXObject CreateXObject(PdfPage page)

Parameters

page PdfPage

The page to use as a template.

Returns

PdfXObject

The newly created PdfXObject.

Remarks

A page pointed to by page can belong to any document (not only this one).

Use this method to combine multiple PDF pages on a single page. Read more in the Impose PDF section of the Merge PDF documents in C# and VB.NET article.

See an example of using this method when resizing page contents.