[ckan-dev] Previewing pdf files in new version 2.7

David Hernández Gutiérrez davisoski at gmail.com
Sun Sep 10 11:16:58 UTC 2017


Hi.

I have installed a new fresh version of CKAN 2.7 in ubuntu 14.04.

Just created a new group and a new dataset just to test *pdf preview*.
Added dataset to my  group.

Later installed ckanext-pfdview from https://github.com/ckan/ckanext-pdfview
.

First time following this steps:

. /usr/lib/ckan/default/bin/activate

cd /usr/lib/ckan/default/src/ckanext-pdfview

python setup.py develop

cd /etc/ckan/default

pico production.ini


Added this:

ckan.plugins = stats text_view image_view recline_view resource_proxy
pdf_view

ckan.views.default_views = image_view text_view recline_view resource_proxy
pdf_view


Previewing not working.


Later I delete ckanext-pdfview

and added from usr/lib/ckan/default/src/

git clone https://github.com/ckan/ckanext-pdfview.git
cd ckanext-pdfview
python setup.py develop

My url works great at:
http://www.mydomain.com/dataset/8e8b915c-926d-4ede-a552-d609c0af6d03/resource/40962759-77e2-49ee-8f91-b738d1312a0f/download/mypdf.pdf


but not able to preview this file in:
http://www.mydomain.com/dataset/pdf1/resource/40962759-77e2-49ee-8f91-b738d1312a0f



Am I missing something new with this extension, I my production is working
correctly version 2.5


Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170910/e6de0221/attachment-0002.html>


More information about the ckan-dev mailing list