> For the complete documentation index, see [llms.txt](https://university.gonexa.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://university.gonexa.fr/doc/advanced-features/doc-and-flows/convert-to-pdf-and-merge.md).

# Convertir en PDF et fusionner des documents

Utilisez cette action de flux pour convertir ou fusionner des documents

## Nom de l'action : "Convert to PDF"

Cette action de flux permet de convertir un document en PDF, et permet également de fusionner plusieurs documents pour n'en former qu'un.

**Dans un flux Salesforce :**

### Ajouter l'action Convert to PDF

* **Content Version ID** : Renseignez ici l'ID du Content Version à convertir en PDF, ou auquel on souhaite ajouter des documents en annexes\
  Vous pouvez récupérer cette valeur avec une obtention d'enregistrement dans le flux.

Dans le cas où vous souhaitez fusionner plusieurs documents, créez une variable de collection pour stocker des annexes

* **Annexes IDS** : Renseignez ici la variable de collection dans laquelle vous avez stocké les IDs des documents à ajouter au document principal.\
  On attend ici des IDs de version de contenu (Content Version)\
  Vous pouvez récupérer les documents via un écran ou en utilisant une obtention d'enregistrement dans le flux par exemple

{% hint style="warning" %}
**Astuce**

Un flux d'exemple est disponible dans l'Org de flux préconçue
{% endhint %}


---

# 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://university.gonexa.fr/doc/advanced-features/doc-and-flows/convert-to-pdf-and-merge.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.
