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
by Eason Leung - Monday, 7 February 2022, 7:36 PM
Group 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
by Laurent Virgos - Monday, 7 February 2022, 11:23 PM
 

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
by David Shaw - Thursday, 24 March 2022, 7:23 AM
 

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