# PdfExternalSignatureOptions

Options for preparing a dependency-free external PDF signature placeholder.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfExternalSignatureOptions.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfExternalSignatureOptions.cs#L9)

**Implements**

`IPdfOperationCancellation`

**Modifiers**

sealed

Options for preparing a dependency-free external PDF signature placeholder.

## Inheritance

- object
- PdfExternalSignatureOptions

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Encrypt, Decrypt, and Sign PDFs](/docs/pdf/encrypt-sign/) Guide
  
  Encrypt PDFs with passwords and permissions, decrypt protected files, sign with a certificate and validate signatures with OfficeIMO.Pdf.

## 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.

### Accepted by parameters 2

- Method [PdfDocumentSecurity.PrepareExternalSignature](/api/pdf/officeimo-pdf-pdfdocumentsecurity/#method-prepareexternalsignature-officeimo-pdf-pdfexternalsignatureoptions-threading-cancellationtoken) parameter `options`
- Method [PdfDocumentSecurity.SignExternal](/api/pdf/officeimo-pdf-pdfdocumentsecurity/#method-signexternal-officeimo-pdf-ipdfexternalsigner-officeimo-pdf-pdfexternalsignatureoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

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

[PdfExternalSignatureOptions.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfExternalSignatureOptions.cs#L9)

## 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 long MaxInputBytes { get; set; }` [#](#property-maxinputbytes)

[PdfExternalSignatureOptions.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfExternalSignatureOptions.cs#L13)

Maximum PDF source bytes accepted before signature preparation begins.

`public long MaxPreparedOutputBytes { get; set; }` [#](#property-maxpreparedoutputbytes)

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

Maximum prepared PDF bytes. The default matches the limit used to complete a persisted signature (768 MiB).

`public PdfSignatureProfile Profile { get; set; }` [#](#property-profile)

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

High-level signature intent. Approval is the default.

`public PdfCertificationPermissionLevel CertificationPermission { get; set; }` [#](#property-certificationpermission)

[PdfExternalSignatureOptions.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfExternalSignatureOptions.cs#L29)

DocMDP permission emitted for certification signatures.

`public PdfVisibleSignatureAppearanceOptions? VisibleAppearance { get; set; }` [#](#property-visibleappearance)

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

Optional visible widget and appearance-stream settings.

`public string FieldName { get; set; }` [#](#property-fieldname)

[PdfExternalSignatureOptions.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfExternalSignatureOptions.cs#L36)

AcroForm signature field name to append.

`public string Filter { get; set; }` [#](#property-filter)

[PdfExternalSignatureOptions.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfExternalSignatureOptions.cs#L45)

Signature handler filter. The default is Adobe.PPKLite.

`public PdfExternalSignatureSubFilter SubFilter { get; set; }` [#](#property-subfilter)

[PdfExternalSignatureOptions.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfExternalSignatureOptions.cs#L48)

Signature subfilter describing the external signature bytes that will be injected later.

`public string? Name { get; set; }` [#](#property-name)

[PdfExternalSignatureOptions.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfExternalSignatureOptions.cs#L51)

Display name of the signer, emitted as /Name when supplied.

`public string? Reason { get; set; }` [#](#property-reason)

[PdfExternalSignatureOptions.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfExternalSignatureOptions.cs#L54)

Signing reason, emitted as /Reason when supplied.

`public string? Location { get; set; }` [#](#property-location)

[PdfExternalSignatureOptions.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfExternalSignatureOptions.cs#L57)

Signing location, emitted as /Location when supplied.

`public string? ContactInfo { get; set; }` [#](#property-contactinfo)

[PdfExternalSignatureOptions.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfExternalSignatureOptions.cs#L60)

Signer contact information, emitted as /ContactInfo when supplied.

`public DateTimeOffset? SigningTime { get; set; }` [#](#property-signingtime)

[PdfExternalSignatureOptions.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfExternalSignatureOptions.cs#L63)

Signing timestamp metadata. Defaults to the current UTC timestamp when omitted.

`public int ReservedSignatureContentsBytes { get; set; }` [#](#property-reservedsignaturecontentsbytes)

[PdfExternalSignatureOptions.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfExternalSignatureOptions.cs#L67)

Number of raw signature bytes to reserve inside /Contents before hex encoding.

## Fields

`public const long DefaultMaxInputBytes` [#](#field-defaultmaxinputbytes)

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

Default maximum PDF source size accepted by one-shot signing APIs (512 MiB).

Value: `536870912`

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