Course component (Open edX XBlock) that provides an easy way to embed a PDF
- Download button available
- (Optional) Source document download button, for example to provide your PPT file
- Create tracking logs:
edx.pdf.loaded
when a student loads the PDFedx.pdf.downloaded
when a student downloads the PDF
By default, PDF Download Allowed is set to True
.
The default value can be changed in xblock-pdf/pdf/ pdf.py
cd /edx/app/edxapp
sudo git clone https://github.com/moocitfrance/xblock-pdf
sudo -H -u edxapp bash
source /edx/app/edxapp/venvs/edxapp/bin/activate
cd /edx/app/edxapp
/edx/bin/pip.edxapp install xblock-pdf/
Go to Settings -> Advanced Settings
and set advanced_modules
to ["pdf"]
.
Select Advanced -> PDF
in your unit.
GNU Affero General Public License 3.0 (AGPL 3.0)