# Fichier PDF

L'ajout de PDF peut se faire de deux manières:&#x20;

* via un composant [HTML](#ajouter-un-pdf-html-5)&#x20;
* via un [composant avancé "pdf"](#ajouter-un-pdf-composant).&#x20;

{% hint style="info" %}
Le composant avancé PDF n'est pas supporté sur les applications mobiles. Si vous prévoyez d'utiliser des PDF et les applications mobiles, nous recommandons d'utiliser la méthode HTML5.&#x20;
{% endhint %}

### Ajouter un PDF (HTML5)

1. Accéder au Studio et cliquer sur votre cours
2. Cliquer sur ***Contenu / Fichiers et téléchargements***
3. Ajouter votre fichier et copier-coller l'URL Studio

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-M4y9Dl0GOrleUStqjZy%2F-M4yBE3_IwHREyZfCR3_%2Fimage.png?alt=media\&token=4ccd9fc3-6d4c-4935-8aec-8c6f095cdd5a)

{% hint style="info" %}
Veillez à ce que le nom de votre fichier ne contienne pas de caractères spéciaux  ou accentué. :warning:&#x20;
{% endhint %}

1. Accéder à l'unité dans laquelle ajouter le PDF
2. Ajouter un composant HTML / Raw HTML
3. Copier-coller le code ci-dessous et remplacer l'URL de la source `src=""` par celle de votre fichier copiée précédemment.

`<embed src="/static/mon_fichier_pdf.pdf" width="100%" height="1200px" type='application/pdf'>`

### Ajouter un PDF (composant)&#x20;

1. Accéder au Studio et cliquer sur votre cours
2. Cliquer sur ***Paramètres / Paramètres avancés***&#x20;
3. Localiser la propriété ***Liste des modules avancés*** et ajouter `"pdf"`

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-M4y9Dl0GOrleUStqjZy%2F-M4yD9b2Uo1Q3FHXDd08%2Fimage.png?alt=media\&token=6cdcef9e-9800-4458-8aaa-01e1603db896)

Le composant PDF est alors disponible pour être ajouté dans une unité via le bouton ***Avancé / PDF***

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-M4yDChwnE-mL21PW9Y-%2F-M4yF4NpEHG6t7882G3z%2Fimage.png?alt=media\&token=7497552b-9d37-41cf-afaa-78b7e746ed96)

Sélectionnez pour modifier le composant PDF

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-MMzeTfytCGqAQa2Jn2V%2F-MMzegl8jYAZ93xwhewE%2FScreen%20Shot%202020-11-25%20at%2014.49.40.png?alt=media\&token=69444919-b936-4870-b319-a5b26d501dfd)

Dans une autre fenêtre, ouvrez Contenu> Fichiers & téléchargements

Sélectionnez le «Studio» pour copier le code du PDF.

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-MMzeTfytCGqAQa2Jn2V%2F-MMzfJkMeIB6n9VafMmO%2FScreen%20Shot%202020-11-25%20at%2014.52.23.png?alt=media\&token=c014889a-6be3-4b5e-94cb-7e0f8f0bd25c)

Remplacez le code «URL du PDF» par le code que vous utilisez copié.

Sélectionnez pour enregistrer

![](https://389845637-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4y57zV2xVTpLls44ok%2F-MMzeTfytCGqAQa2Jn2V%2F-MMzg5u1BeFIgWHi_GDE%2FScreen%20Shot%202020-11-25%20at%2014.53.54.png?alt=media\&token=ec5fd74f-446c-47f3-a7e1-3647e480c8b4)


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.moocit.fr/composants/fichier-pdf.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
