Totara Learn Open Discussions

How to display PDF files directly in Totara Learn not of downloading them

 
Eason Leung
How to display PDF files directly in Totara Learn not of downloading them
par Eason Leung, Monday 7 February 2022, 19:36
Groupe Partners

As the subject, whatever i use ‘File' or 'Book' or other activities to include PDF file, they just have download action. 

I want to display the PDF file on the page of Totara Learn and don't allow download it, how should i do?

Laurent Virgos
Re: How to display PDF files directly in Totara Learn not of downloading them
par Laurent Virgos, Monday 7 February 2022, 23:23
 

Hi Eason

Maybe you can try with with this code in a label. You can modify toolbar or scrollbar values


<center><embed src="https://totara_url.org/resource/view.php?id=14525#toolbar=0&amp;navpanes=1&amp;scrollbar=1" quality="low" width="100%" height="540"></center>

David
Re: How to display PDF files directly in Totara Learn not of downloading them
par David Shaw, Thursday 24 March 2022, 07:23
 

A bit of a late reply but you need to enable 'allowpdfembedding' in [Plugins / Activity modules / File]
/admin/settings.php?section=modsettingresource to allow pdf's to be opened in some other way than downloaded