---
title: "PDF/A conversion - Signature sessions"
description: "How to have Rest PKI Core convert PDFs to PDF/A right before signing, in signature sessions; needs version 4.2.0 and a configured conversion service."
canonical: "https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/integration/signature-sessions/pdf-a-conversion"
locale: "en"
product: "Rest PKI Core"
last_updated: "2026-07-22"
---

# PDF/A conversion - Signature sessions

As of version 4.2.0, Rest PKI Core can automatically convert a PDF document to the **PDF/A** format (a long-term archiving
standard) right before signing. To enable it, set `ConvertToPdfA = true` on `PdfSignatureOptions`.

> **Warning**
>
> This operation requires at least version **4.2.2** of the client library `Lacuna.RestPkiCore.Client`. Make sure to update
> the package before using it.

> **Note**
>
> This feature requires a PDF/A conversion service to be enabled and properly configured on your Rest PKI Core instance
> beforehand. If the service is not available, the call will fail with an `ApiException` (code `PdfAConversionNotAvailable`)
> when the conversion is attempted.

## In signature sessions

When creating a [signature session](https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/integration/signature-sessions), set `PdfSignatureOptions.ConvertToPdfA = true` to convert to PDF/A every PDF
document signed during the session (both documents uploaded by the user and [predefined documents](https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/integration/signature-sessions#predefined-documents)
that don't specify their own option):

In .NET:

```cs
var response = await restPkiService.CreateSignatureSessionAsync(new CreateSignatureSessionRequest() {
	...
	PdfSignatureOptions = new PdfSignatureOptions {
		ConvertToPdfA = true,
	},
});
return Redirect(response.RedirectUrl);
```

The option can also be set individually on each predefined document, overriding the session-level option:

```cs
var documents = new List<SignatureSessionDocumentToSign> {
	new SignatureSessionDocumentToSign {
		File = FileReference.FromFile(pdfPath),
		PdfSignatureOptions = new PdfSignatureOptions {
			ConvertToPdfA = true,
		},
	},
	...
};
```

Direct API integration:

```plaintext
POST {endpoint}/api/signature-sessions
{
	...
	"pdfSignatureOptions": {
		"convertToPdfA": true
	}
}
```

## In standalone signatures

The same option is available on `PdfSignatureOptions` when using the local signature flow (`PrepareSignatureAsync`), outside
the context of signature sessions.
