# PDF viewer without download / print option

By default, all PDF viewers offer the option to download / print the document.

![](/files/-Mahh3aszDxy-p7LOlrI)

&#x20;If you wish to prohibit the copying of the PDF documents (download, print, save-as), please follow the steps below.&#x20;

{% hint style="warning" %}
Note: In order to privatise our PDF documents, we will be using Google Drive. You must have a Google account to proceed with this tutorial.&#x20;
{% endhint %}

### Protect your PDF documents with the help of Google Drive

1\) Add your **PDF** to your **Google Drive** account. Select the **3 vertical dots menu** in the upper right hand corner.

![](/files/-Mahl3LSY0h_aRhLxq9n)

2\) Select '**Share**'&#x20;

![](/files/-Mahl8Xz51ReiPTJmLRH)

3\) Select the **gear icon** '***Share with people settings***'.&#x20;

![](/files/-MahlNAfWtUQS22FgP_L)

4\) Deselect the options: \
\- Editors can change permissions and share\
\- Viewers and commenters can see the option to download, print, and copy

![](/files/-MahlgtOi60eZ6IOS-i8)

5\) Select the **Back** arrow to return to the sharing menu.&#x20;

![](/files/-MahlvHfTDvGShx6PfVz)

6\) Under **Get Link** select to ***Change Link***&#x20;

![](/files/-MahmB6lgh18XJnjYOCq)

7\) Below the '**Get Link**' URL, select the *drown-down menu* to chose who the document will be shared with, and select '***Anyone with Link***'&#x20;

![](/files/-MahmfXw_2q3U7F5tDWP)

On the right, make sure you have selected '**Viewer**' and not '***Commenter***' or '***Editor***'. Because learners should only be able to 'view' the document, not 'comment' or 'edit'. :)&#x20;

![](/files/-MahnNZAk66FBsCOLkVQ)

8\) Select '***Copy Link***' and then select '***Done***'.&#x20;

{% hint style="warning" %}
Keep this window open and open studio in a new tab so that you may easily re-access the Google URL if necessary.
{% endhint %}

![](/files/-MahnsLg7zqwwrXFLIA9)

9\) Open the **Course** > **Unit** where you want to add the PDF. Select to add an **HTML** component > **Raw HTML**.&#x20;

![](/files/-MahonU_G2FhnNQ38RQ0)

![](/files/-MahojiHpwt_idEXde92)

10\) Select to '**Edit**' the component.&#x20;

![](/files/-MahpD0LakotkhFceKhu)

and replace the text with the following code:&#x20;

```
<iframe src="
https://drive.google.com/file/d/1hOzPHBqg-BlU716fr1vyyUD9zlJMHGu3/preview
" width="100%" height="900"></iframe>
```

![](/files/-MahpMTHWJ2eY64wtaaM)

11\) Replace the `src=` URL with your Google Drive PDF URL (Step 8).&#x20;

![](/files/-Mahpm1FCRNSSmfzL1zU)

You can also modify the height and/or width (in pixels) of the PDF viewer.&#x20;

Select to '**Save**' the changes.&#x20;


---

# 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/english/course-components/pdf-viewer-without-download-print-option.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.
