PdfXObject.GetObjects Method

Retrieves collection of all objects drawn on this XObject.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public PdfCollection<PdfPageObject> GetObjects()
VB
Public Function GetObjects As PdfCollection(Of PdfPageObject)

Return Value

Type: PdfCollection<PdfPageObject>
Collection of all objects drawn on this XObject.

Remarks

The collection is ordered. Each subsequent object in the collection is drawn after the previous one.

This method is useful if you want to analyze or modify contents of the XObject. Look at the Copy text, paths and images sample for more detail.

This method returns objects in XObject coordinate system. They are not related to any PDF page.

Page property returns null for images extracted using this method.

See Also