# PdfAttachmentEditResult

Edited PDF bytes with attachment and preservation proof.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfAttachmentEditResult.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfAttachmentEditResult.cs#L32)

**Modifiers**

sealed

Edited PDF bytes with attachment and preservation proof.

## Inheritance

- object
- PdfAttachmentEditResult

## Usage

Explore 5 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 5

- Method [PdfDocumentAttachments.Add](/api/pdf/officeimo-pdf-pdfdocumentattachments/#method-add-officeimo-pdf-pdfembeddedfile)
- Method [PdfDocumentAttachments.Edit](/api/pdf/officeimo-pdf-pdfdocumentattachments/#method-edit-action-officeimo-pdf-pdfattachmenteditsession)
- Method [PdfDocumentAttachments.Remove](/api/pdf/officeimo-pdf-pdfdocumentattachments/#method-remove-string)
- Method [PdfDocumentAttachments.Rename](/api/pdf/officeimo-pdf-pdfdocumentattachments/#method-rename-string-string)
- Method [PdfDocumentAttachments.Replace](/api/pdf/officeimo-pdf-pdfdocumentattachments/#method-replace-string-officeimo-pdf-pdfembeddedfile)

Filter members 

Show inherited

## Methods

`public byte[] ToBytes()` [#](#method-tobytes)

[PdfAttachmentEditResult.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfAttachmentEditResult.cs#L32)

Returns a defensive copy of the edited PDF.

Returns

`byte[]`

`public PdfDocument ToDocument()` [#](#method-todocument)

[PdfAttachmentEditResult.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfAttachmentEditResult.cs#L34)

Opens the edited artifact.

Returns

`PdfDocument`

## 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 PdfMutationPlan MutationPlan { get; }` [#](#property-mutationplan)

[PdfAttachmentEditResult.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfAttachmentEditResult.cs#L24)

Shared full-rewrite mutation plan.

`public PdfRewritePreservationReport PreservationReport { get; }` [#](#property-preservationreport)

[PdfAttachmentEditResult.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfAttachmentEditResult.cs#L26)

Proof that non-attachment structures survived the rewrite.

`public IReadOnlyList<PdfAttachmentValidation> Validations { get; }` [#](#property-validations)

[PdfAttachmentEditResult.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfAttachmentEditResult.cs#L28)

Attachment payload, checksum, and metadata validations.

`public bool IsValid { get; }` [#](#property-isvalid)

[PdfAttachmentEditResult.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfAttachmentEditResult.cs#L30)

True when every requested attachment passed readback validation.

<!-- PowerForge markdown artifact sha256:021DC320A8CA378BA9C71C7EDBCFFA283D6887844EFAEC18E45430A7CCE8288B -->
