This PR migrates the extension to Python 3 and also makes it compatible with CKAN 2.7, 2.8, 2.9, and master.
It changes the approach and instead of using PDF.js it uses an <object> tag to use native web browser PDF rendering. This PR is based on the built-in extension that will be soon available in CKAN by default.
This approach is a little bit more cleaner that the previous one and has less code to mantain.
This PR migrates the extension to Python 3 and also makes it compatible with CKAN
2.7
,2.8
,2.9
, andmaster
.It changes the approach and instead of using PDF.js it uses an
<object>
tag to use native web browser PDF rendering. This PR is based on the built-in extension that will be soon available in CKAN by default.This approach is a little bit more cleaner that the previous one and has less code to mantain.
PDF View on CKAN 2.9/Python 3:
PDF View running on CKAN 2.8/Python 2:
PDF View with external PDF resources: