# PdfTextRedlineResult

Result of PdfTextRedline.Compare. Review signatures, members, parameters, type relationships, and available reference details in OfficeIMO.Pdf API Reference.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[PdfTextRedline.cs:302](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Pdf/Comparison/PdfTextRedline.cs#L302)

**Modifiers**

sealed

Result of [PdfTextRedline.Compare](/api/pdf/officeimo-pdf-pdftextredline/).

## Inheritance

- object
- PdfTextRedlineResult

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Method [PdfTextRedline.Compare](/api/pdf/officeimo-pdf-pdftextredline/#method-compare-byte-byte-officeimo-pdf-pdftextredlineoptions-threading-cancellationtoken)
- Method [PdfTextRedline.CompareFiles](/api/pdf/officeimo-pdf-pdftextredline/#method-comparefiles-string-string-officeimo-pdf-pdftextredlineoptions-threading-cancellationtoken)

Filter members 

Show inherited

## Methods

`public string ToHtml(string? title = null, CancellationToken cancellationToken = default)` [#](#method-tohtml-string-threading-cancellationtoken)

[PdfTextRedline.cs:306](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Pdf/Comparison/PdfTextRedline.cs#L306)

Renders a standalone side-by-side HTML report of the two texts with the change list.

Parameters

**title string? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`string`

`public string ToJson(bool indented = true)` [#](#method-tojson-boolean)

[PdfTextRedline.cs:302](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Pdf/Comparison/PdfTextRedline.cs#L302)

Serialises the change list to JSON.

Parameters

**indented bool = true optional**

Returns

`string`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public byte[] Pdf { get; }` [#](#property-pdf)

[PdfTextRedline.cs:281](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Pdf/Comparison/PdfTextRedline.cs#L281)

The new PDF with review annotations added. When nothing changed it is an unmodified copy of the new PDF.

`public OfficeChangeSet Changes { get; }` [#](#property-changes)

[PdfTextRedline.cs:284](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Pdf/Comparison/PdfTextRedline.cs#L284)

Every change, with page numbers and page rectangles on both sides.

`public int AnnotationCount { get; }` [#](#property-annotationcount)

[PdfTextRedline.cs:287](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Pdf/Comparison/PdfTextRedline.cs#L287)

Number of annotations added (pop-ups not counted).

`public bool AnnotationLimitReached { get; }` [#](#property-annotationlimitreached)

[PdfTextRedline.cs:290](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Pdf/Comparison/PdfTextRedline.cs#L290)

True when [PdfTextRedlineOptions.MaxAnnotatedChanges](/api/pdf/officeimo-pdf-pdftextredlineoptions/) left some changes without annotations.

`public string OldText { get; }` [#](#property-oldtext)

[PdfTextRedline.cs:293](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Pdf/Comparison/PdfTextRedline.cs#L293)

Old PDF text in reading order, one extracted line per line.

`public string NewText { get; }` [#](#property-newtext)

[PdfTextRedline.cs:296](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Pdf/Comparison/PdfTextRedline.cs#L296)

New PDF text in reading order, one extracted line per line.

`public bool HasChanges { get; }` [#](#property-haschanges)

[PdfTextRedline.cs:299](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Pdf/Comparison/PdfTextRedline.cs#L299)

True when the texts are the same.

<!-- PowerForge markdown artifact sha256:CF33228EC15996F884EE38038564D05CDEF9F3A28C7853CBA8EF7CE6BDC1B2BC -->
