# PdfAssociatedFileRelationship

Relationship between a PDF document and an associated embedded file.

Enum 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfAssociatedFileRelationship.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfAssociatedFileRelationship.cs#L6)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Relationship between a PDF document and an associated embedded file.

## Inheritance

- Enum
- PdfAssociatedFileRelationship

## Usage

Explore 23 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 10

- Field [PdfAssociatedFileRelationship.Alternative](/api/pdf/officeimo-pdf-pdfassociatedfilerelationship/#field-alternative)
- Field [PdfAssociatedFileRelationship.C2paManifest](/api/pdf/officeimo-pdf-pdfassociatedfilerelationship/#field-c2pamanifest)
- Field [PdfAssociatedFileRelationship.Data](/api/pdf/officeimo-pdf-pdfassociatedfilerelationship/#field-data)
- Field [PdfAssociatedFileRelationship.Source](/api/pdf/officeimo-pdf-pdfassociatedfilerelationship/#field-source)
- Field [PdfAssociatedFileRelationship.Supplement](/api/pdf/officeimo-pdf-pdfassociatedfilerelationship/#field-supplement)
- Field [PdfAssociatedFileRelationship.Unspecified](/api/pdf/officeimo-pdf-pdfassociatedfilerelationship/#field-unspecified)
- Property [PdfAttachmentInfo.Relationship](/api/pdf/officeimo-pdf-pdfattachmentinfo/#property-relationship)
- Property [PdfDocumentInfo.AttachmentsByRelationship](/api/pdf/officeimo-pdf-pdfdocumentinfo/#property-attachmentsbyrelationship)
- Property [PdfEmbeddedFile.Relationship](/api/pdf/officeimo-pdf-pdfembeddedfile/#property-relationship)
- Property [PdfExtractedAttachment.Relationship](/api/pdf/officeimo-pdf-pdfextractedattachment/#property-relationship)

### Accepted by parameters 13

- Method [PdfCreateOptions.AddEmbeddedFile](/api/pdf/officeimo-pdf-pdfcreateoptions/#method-addembeddedfile-string-byte-string-officeimo-pdf-pdfassociatedfilerelationship-string) parameter `relationship`
- Method [PdfCreateOptions.AddFacturXInvoiceXml](/api/pdf/officeimo-pdf-pdfcreateoptions/#method-addfacturxinvoicexml-byte-string-string-officeimo-pdf-pdfassociatedfilerelationship-string) parameter `relationship`
- Method [PdfCreateOptions.AddFacturXInvoiceXmlFile](/api/pdf/officeimo-pdf-pdfcreateoptions/#method-addfacturxinvoicexmlfile-string-string-string-officeimo-pdf-pdfassociatedfilerelationship-string) parameter `relationship`
- Method [PdfCreateOptions.ConfigureElectronicInvoiceGroundwork](/api/pdf/officeimo-pdf-pdfcreateoptions/#method-configureelectronicinvoicegroundwork-officeimo-pdf-pdfcomplianceprofile-byte-string-string-officeimo-pdf-pdfassociatedfilerelationship-string-boolean) parameter `relationship`
- Method [PdfCreateOptions.ConfigureElectronicInvoiceGroundworkFile](/api/pdf/officeimo-pdf-pdfcreateoptions/#method-configureelectronicinvoicegroundworkfile-officeimo-pdf-pdfcomplianceprofile-string-string-string-officeimo-pdf-pdfassociatedfilerelationship-string-boolean) parameter `relationship`
- Method [PdfCreateOptions.ConfigureFacturXGroundwork](/api/pdf/officeimo-pdf-pdfcreateoptions/#method-configurefacturxgroundwork-byte-string-string-officeimo-pdf-pdfassociatedfilerelationship-string-boolean) parameter `relationship`
- Method [PdfCreateOptions.ConfigureFacturXGroundworkFile](/api/pdf/officeimo-pdf-pdfcreateoptions/#method-configurefacturxgroundworkfile-string-string-string-officeimo-pdf-pdfassociatedfilerelationship-string-boolean) parameter `relationship`
- Method [PdfCreateOptions.UseFacturX](/api/pdf/officeimo-pdf-pdfcreateoptions/#method-usefacturx-byte-string-string-officeimo-pdf-pdfassociatedfilerelationship-string-officeimo-pdf-pdftextfallbackfeatures) parameter `relationship`
- Method [PdfCreateOptions.UseFacturXDocument](/api/pdf/officeimo-pdf-pdfcreateoptions/#method-usefacturxdocument-officeimo-pdf-pdfciiinvoicedocument-string-string-officeimo-pdf-pdfassociatedfilerelationship-string-officeimo-pdf-pdftextfallbackfeatures) parameter `relationship`
- Method [PdfCreateOptions.UseFacturXFile](/api/pdf/officeimo-pdf-pdfcreateoptions/#method-usefacturxfile-string-string-string-officeimo-pdf-pdfassociatedfilerelationship-string-officeimo-pdf-pdftextfallbackfeatures) parameter `relationship`
- Method [PdfDocumentInfo.GetAttachmentsByRelationship](/api/pdf/officeimo-pdf-pdfdocumentinfo/#method-getattachmentsbyrelationship-officeimo-pdf-pdfassociatedfilerelationship) parameter `relationship`
- Method [PdfDocumentReadResult.GetAttachmentsByRelationship](/api/pdf/officeimo-pdf-pdfdocumentreadresult/#method-getattachmentsbyrelationship-officeimo-pdf-pdfassociatedfilerelationship) parameter `relationship`
- Constructor [PdfEmbeddedFile.PdfEmbeddedFile](/api/pdf/officeimo-pdf-pdfembeddedfile/#constructor-ctor-string-byte-string-officeimo-pdf-pdfassociatedfilerelationship-string-nullable-system-datetimeoffset-nullable-system-datetimeoffset) parameter `relationship`

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

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

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from Enum

Returns

`int`

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

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

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

Inherited from Enum

Returns

`string`

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

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const PdfAssociatedFileRelationship Unspecified` [#](#field-unspecified)

[PdfAssociatedFileRelationship.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfAssociatedFileRelationship.cs#L8)

The relationship is intentionally unspecified.

Value: `0`

`public const PdfAssociatedFileRelationship Source` [#](#field-source)

[PdfAssociatedFileRelationship.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfAssociatedFileRelationship.cs#L10)

The embedded file is the source material for the PDF.

Value: `1`

`public const PdfAssociatedFileRelationship Data` [#](#field-data)

[PdfAssociatedFileRelationship.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfAssociatedFileRelationship.cs#L12)

The embedded file contains data associated with the PDF.

Value: `2`

`public const PdfAssociatedFileRelationship Alternative` [#](#field-alternative)

[PdfAssociatedFileRelationship.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfAssociatedFileRelationship.cs#L14)

The embedded file is an alternative representation of the PDF content.

Value: `3`

`public const PdfAssociatedFileRelationship Supplement` [#](#field-supplement)

[PdfAssociatedFileRelationship.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfAssociatedFileRelationship.cs#L16)

The embedded file supplements the PDF content.

Value: `4`

`public const PdfAssociatedFileRelationship C2paManifest` [#](#field-c2pamanifest)

[PdfAssociatedFileRelationship.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Enums/PdfAssociatedFileRelationship.cs#L18)

The embedded file is a C2PA Manifest Store associated with the PDF.

Value: `5`

<!-- PowerForge markdown artifact sha256:9F921C9AE5D500D9A212D7B19D9AEED52FAF82DA39C38C2CC62588BED5CB6076 -->
