Totara Learn Open Discussions

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

 
LeungEason
How to display PDF files directly in Totara Learn not of downloading them
LeungEason 发表于 2022年02月7日 Monday 19:36
小组 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?

标签:
VirgosLaurent
Re: How to display PDF files directly in Totara Learn not of downloading them
VirgosLaurent 发表于 2022年02月7日 Monday 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
ShawDavid 发表于 2022年03月24日 Thursday 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