> For the complete documentation index, see [llms.txt](https://help.form.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.form.io/form-building/pdf-forms/dynamic-pdf-translation.md). Agents can also search and read this documentation through its [MCP server](https://help.form.io/~gitbook/mcp).

# PDF Translation

| Server     | Minimum Version |
| ---------- | --------------- |
| API Server | 9.8.0           |
| PDF Server | 5.14.0          |

## Overview

Dynamic PDF Translation lets submission PDFs display form text, such as field labels and descriptions, in a language other than the form's default. The language is selected when the PDF is generated, so the same submission can be downloaded in any supported language without changing the form or resubmitting it.

Translations can come from one of two sources:

* [**Hosted File PDF Translation**](https://help.form.io/form-building/pdf-forms/dynamic-pdf-translation/hosted-file-pdf-translation.md): Translations are stored in a JSON file hosted at a URL.
* [**Resource-based PDF Translation**](https://help.form.io/form-building/pdf-forms/dynamic-pdf-translation/hosted-file-pdf-translation.md): Translations are stored as submissions in a Form.io Language resource.

## Choosing a Method <a href="#choosing-a-method" id="choosing-a-method"></a>

The choice of PDF submission translation depends on how the application is maintained and how submissions may be used.

|                        | URL-based                                                             | Resource-based                                                          |
| ---------------------- | --------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| Translations stored in | A hosted JSON file                                                    | A Form.io Language resource, with one submission per language           |
| Maintained by          | Whoever manages the file, usually developers                          | Anyone with access to the resource, using the Form.io portal            |
| Reuse with live forms  | The renderer can load the same file with the `translationsUrl` option | The same resource can serve Resource-Based Translations in the renderer |
| Minimum versions       | API Server 9.8.0, PDF Server 5.14.0                                   | API Server 9.12.0, PDF Server 5.17.0                                    |

Choose **URL-based** if translations are already managed as files, for example in source control or a translation management system. Choose **Resource-based** to let non-developers add and update translations by accessing the Language Resource, or if a Language resource is already implemented for forms.

## Configuring the Translation Method <a href="#selecting-the-translation-method" id="selecting-the-translation-method"></a>

Each form uses one translation method for its PDFs.

1. Open the form and go to **Form Settings**.
2. In the **PDF Settings** section, find **PDF Translation Method**.
3. Select **Translations URL** or **Form.io Language Resource**.
4. Complete the settings for that method, then save the form settings.

The fields for each method are described in [**Hosted File PDF Translation**](https://help.form.io/form-building/pdf-forms/dynamic-pdf-translation/hosted-file-pdf-translation.md) and [**Resource-based PDF Translation**](https://help.form.io/form-building/pdf-forms/dynamic-pdf-translation/hosted-file-pdf-translation.md).

## How It Works <a href="#how-it-works" id="how-it-works"></a>

When a submission PDF is requested, the PDF Server:

1. Determines which language to use.
2. Loads the translations for that language from the form's configured source.
3. Replaces form text that exactly matches a translation key with its translated value.
4. Renders the PDF.

Any text without a matching translation appears in its original language.

## Supported Translation Scope <a href="#supported-translation-scope" id="supported-translation-scope"></a>

Dynamic PDF Translation translates text defined in the form. Data entered by users in the submission is not translated and appears as submitted.

The following text can be translated:

| Setting                                                                                                                                                                                                                       | Description                                    |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| [Label](https://help.form.io/userguide/forms/form-building/form-components/component-settings#label)                                                                                                                          | Component labels                               |
| [Description](https://help.form.io/userguide/forms/form-building/form-components/component-settings#description)                                                                                                              | Text shown below a component                   |
| [Prefix/Suffix](https://help.form.io/userguide/forms/form-building/form-components/component-settings#prefix)                                                                                                                 | Text shown before or after a component's value |
| [HTML Element](https://help.form.io/userguide/forms/form-building/form-components/layout-components#html-element) and [Content](https://help.form.io/userguide/forms/form-building/form-components/layout-components#content) | Static text within these components            |

### Matching Form Text <a href="#matching-form-text" id="matching-form-text"></a>

Translation keys must match the form text exactly, including capitalization, spacing, and punctuation. For example, a key of `First name` does not translate a label of `First Name`. This applies to both the keys in a translations file and the keys in a Language resource's translation map.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.form.io/form-building/pdf-forms/dynamic-pdf-translation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
