# PdfRepairArtifactOptions

Controls fail-closed creation of normalized PDF repair artifacts.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[PdfRepairArtifact.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Pdf/Manipulation/PdfRepairArtifact.cs#L13)

**Implements**

`IPdfOperationCancellation`

**Modifiers**

sealed

Controls fail-closed creation of normalized PDF repair artifacts.

## Inheritance

- object
- PdfRepairArtifactOptions

## Usage

Explore 1 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.

### Accepted by parameters 1

- Method [PdfRepairArtifact.Create](/api/pdf/officeimo-pdf-pdfrepairartifact/#method-create-byte-officeimo-pdf-pdfrepairartifactoptions-officeimo-pdf-pdfloadoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public PdfRepairArtifactOptions()` [#](#constructor-ctor)

[PdfRepairArtifact.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Pdf/Manipulation/PdfRepairArtifact.cs#L13)

## 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 bool RequireRecoveredDefects { get; set; }` [#](#property-requirerecovereddefects)

[PdfRepairArtifact.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Pdf/Manipulation/PdfRepairArtifact.cs#L13)

Rejects a clean source that has no recovered structural defects.

`public bool RejectDetectedOnlyDefects { get; set; }` [#](#property-rejectdetectedonlydefects)

[PdfRepairArtifact.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Pdf/Manipulation/PdfRepairArtifact.cs#L16)

Rejects sources containing ambiguous defects that were detected but not recovered.

`public long? MaximumOutputBytes { get; set; }` [#](#property-maximumoutputbytes)

[PdfRepairArtifact.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Pdf/Manipulation/PdfRepairArtifact.cs#L19)

Optional maximum byte count for the rewritten artifact.

<!-- PowerForge markdown artifact sha256:2D4027856BC19CF74746CD98D85ABE8E0CC79CC1FDC9F3343E5855D1156F76DE -->
