Skip to content

PdfStructureTree.MapObjectReference Method

Overloads

Name Description
MapObjectReference(PdfImage,PdfStructureElement) Adds a mapping between an image and a structure element.
MapObjectReference(PdfFormXObject,PdfStructureElement) Adds a mapping between a form XObject and a structure element.
MapObjectReference(PdfAnnotation,PdfStructureElement) Adds a mapping between an annotation and a structure element.

MapObjectReference(PdfImage,PdfStructureElement)

Adds a mapping between an image and a structure element.

C#
public void MapObjectReference(PdfImage image, PdfStructureElement structureElement)

Parameters

image PdfImage

The image that acts as a content item for the structure element.

structureElement PdfStructureElement

The structure element that has a PdfObjectReference as children, object reference that points to the image.

Remarks

This method needs to be called when a structure element uses an entire PDF object as content item through a PdfObjectReference.

MapObjectReference(PdfFormXObject,PdfStructureElement)

Adds a mapping between a form XObject and a structure element.

C#
public void MapObjectReference(PdfFormXObject formXObject, PdfStructureElement structureElement)

Parameters

formXObject PdfFormXObject

The form XObject that acts as a content item for the structure element.

structureElement PdfStructureElement

The structure element that has a PdfObjectReference as children, object reference that points to the form XObject.

Remarks

This method needs to be called when a structure element uses an entire PDF object as content item through a PdfObjectReference.

MapObjectReference(PdfAnnotation,PdfStructureElement)

Adds a mapping between an annotation and a structure element.

C#
public void MapObjectReference(PdfAnnotation annotation, PdfStructureElement structureElement)

Parameters

annotation PdfAnnotation

The annotation that acts as a content item for the structure element.

structureElement PdfStructureElement

The structure element that has a PdfObjectReference as child, object reference that points to the annotation.

Remarks

This method needs to be called when a structure element uses an entire PDF object, such as an annotation, as content item through a PdfObjectReference.