scormPROXY includes an HTML viewer for PDF documents, which allows protecting them in a way that prevents printing, downloading, or copying elements (text/images).
In this document, we will explain how to open a PDF document from content using the integrated scormPROXY viewer:
- In the authoring tool, create or edit the link/button that opens the PDF document to be protected.
- Enter the following path to the PDF document:
../../launcher/pdfjs_standalone_v1/viewer.html?file=<relative path to the PDF document>
For example:../../launcher/pdfjs_standalone_v1/viewer.html?file=docs/Compliance%20v1.pdf(Note: if the file name contains spaces, replace them with the %20 code)
(example in Articulate Storyline)
- Publish the content (in SCORM or xAPI format)
At this point, your authoring tool may not have included the PDF documents linked via the scormPROXY viewer in the SCORM/xAPI package. This is because, by using a link to the viewer instead of a direct link to the document, your authoring tool doesn’t know which PDF document to include in the export.
- Extract the contents of the ZIP package generated by your authoring tool (SCORM/xAPI)
- Check if your PDF documents are inside that extracted folder. For example, Articulate Storyline and Articulate Rise will not include the PDF documents; you will need to add them manually (see next steps)
- Upload all the PDF documents you linked via the viewer to the root folder of the extracted content. You can also create a folder in the root directory and upload all the documents there. Keep this in mind when linking the documents in your authoring tool. In our example, we linked the document with this relative path:“docs/Compliance%20v1.pdf”
So, we will create a folder called “docs” and upload the document “Compliance v1.pdf” inside that folder:
(example in Articulate Storyline)
- Now, select all the files and folders from the extracted folder and compress them again into a ZIP file to create the updated SCORM package
- Upload the new ZIP file to scormPROXY or update an existing content package and test the scormPROXY preview function to check that your PDF document opens correctly via the scormPROXY viewer.
REMEMBER: If you need to update the content in the future and republish it, don’t forget to repeat steps 4-8 to ensure the PDF documents linked through the viewer are included.