# McrContentItemLink

## Content

# Class: McrContentItemLink

Represents a Marked-Content Sequence as a content item in a PDF structure tree (the `MCR` PDF object).

## Extends

- [`RContentItemLink`](RContentItemLink)

## Constructors

### Constructor

```ts
new McrContentItemLink(om): McrContentItemLink;
```

Creates a new McrContentItemLink.

#### Parameters

##### om

[`ObjectManager`](ObjectManager)

#### Returns

`McrContentItemLink`

#### Overrides

```ts
RContentItemLink.constructor
```

### Constructor

```ts
new McrContentItemLink(): McrContentItemLink;
```

Creates a new McrContentItemLink.

#### Returns

`McrContentItemLink`

#### Overrides

```ts
RContentItemLink.constructor
```

## Accessors

### contentStreamOwner

#### Get Signature

```ts
get contentStreamOwner(): ContentItem;
```

Gets the object owning the content stream identified by the
[McrContentItemLink#formXObject](#formxobject) property, or null if there is none
or the target type is not yet supported.

##### Returns

[`ContentItem`](../type-aliases/ContentItem)

#### Set Signature

```ts
set contentStreamOwner(value): void;
```

Sets the object owning the content stream identified by the
[McrContentItemLink#formXObject](#formxobject) property.

##### Parameters

###### value

[`ContentItem`](../type-aliases/ContentItem)

##### Returns

`void`

***

### formXObject

#### Get Signature

```ts
get formXObject(): FormXObject;
```

Gets the [FormXObject](FormXObject) containing the marked-content sequence.
This entry should be present only if the marked-content sequence resides in a content
stream other than the content stream of the page - for example, in a form XObject or
an annotation's appearance stream.

##### Returns

[`FormXObject`](FormXObject)

#### Set Signature

```ts
set formXObject(value): void;
```

Sets the [FormXObject](FormXObject) containing the marked-content sequence.
This entry should be present only if the marked-content sequence resides in a content
stream other than the content stream of the page - for example, in a form XObject or
an annotation's appearance stream.

##### Parameters

###### value

[`FormXObject`](FormXObject)

##### Returns

`void`

***

### id

#### Get Signature

```ts
get id(): number;
```

Gets the reference to the object.

##### Returns

`number`

#### Inherited from

[`RContentItemLink`](RContentItemLink).[`id`](RContentItemLink#id)

***

### mcid

#### Get Signature

```ts
get mcid(): number;
```

Gets the marked-content identifier of the marked-content sequence within its content stream.

##### Returns

`number`

#### Set Signature

```ts
set mcid(value): void;
```

Sets the marked-content identifier of the marked-content sequence within its content stream.

##### Parameters

###### value

`number`

##### Returns

`void`

***

### om

#### Get Signature

```ts
get om(): ObjectManager;
```

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

#### Inherited from

[`RContentItemLink`](RContentItemLink).[`om`](RContentItemLink#om)

***

### page

#### Get Signature

```ts
get page(): PdfPage;
```

Gets the [PdfPage](PdfPage) object where this content item is located.

##### Returns

[`PdfPage`](PdfPage)

#### Set Signature

```ts
set page(value): void;
```

Sets the [PdfPage](PdfPage) object where this content item is located.

##### Parameters

###### value

[`PdfPage`](PdfPage)

##### Returns

`void`

#### Inherited from

[`RContentItemLink`](RContentItemLink).[`page`](RContentItemLink#page)

## Methods

### free()

```ts
free(): void;
```

Detaches the object from the [ObjectManager](ObjectManager) and deallocates its memory, if possible.

#### Returns

`void`

#### Inherited from

[`RContentItemLink`](RContentItemLink).[`free`](RContentItemLink#free)

***

### rebind()

```ts
rebind(omTo): void;
```

Rebinds the object from the current [ObjectManager](ObjectManager) to the specified one.

#### Parameters

##### omTo

[`ObjectManager`](ObjectManager)

The new [ObjectManager](ObjectManager) for the object.

#### Returns

`void`

#### Inherited from

[`RContentItemLink`](RContentItemLink).[`rebind`](RContentItemLink#rebind)
