Previewing full PDF documents

ResourceSpace can be configured using Resource type "Override config options" to use an external library for viewing PDF documents called PDFjs (see demo). The option to use is:

$use_pdfjs_viewer = true;

Once a resource type has been configured to use the PDFjs viewer, ResourceSpace will replace the preview of a PDF document with the PDFjs viewer IF the user has full access to the resource. This will allow the user to see the original file, having the ability to also search within the document using the embedded search functionality of the library.

IMPORTANT: Set this functionality ONLY for resource types for those that hold a PDF file type.