OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Implementation of pdf.js

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

Implementation of pdf.js

Postby knjigor » Tue Jan 28, 2014 1:38 am

Is there a way to implement pdf.js http://mozilla.github.io/pdf.js/ an javascript that enables viewing a pdf document on user page and that is hosted on server so you don't depend on Acrobat reader installation? I'm using script on drupal site and it is rely fast and have nice options. This could be implemented in OMP to.
knjigor
 
Posts: 10
Joined: Fri Feb 03, 2012 1:56 am

Re: Implementation of pdf.js

Postby asmecher » Tue Jan 28, 2014 5:19 am

Hi knjigor,

Something similar has already been implemented in the master branch of OMP, which will be released as OMP 1.1 very soon; see http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8023.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8452
Joined: Wed Aug 10, 2005 12:56 pm

Re: Implementation of pdf.js

Postby knjigor » Thu Jan 30, 2014 12:44 am

Isn't that almost same as current pdf embed plugin in OJS, it just say client system to run Adobe plugin and display document. Problem is that you cannot control Adobe Reader plugin, so you can't disable printing, downloading and further sharing of documents, and that could be a problem to some institutions that have to obey to local country copyright, for example, I'm working as digitizing assistant at Faculty of Philosophy, University of Novi Sad, Serbia and our Law say that schools universities, faculties and other educational institutions can use any publication or part of it for educational purposes, and that means that institution can digitize some journal that is copyrighted, put it in repository for students so they can read it, but institution must not allow further reproduction, copying and distribution of that journal. If we use Adobe Reader as plugin for displaying files we are directly violating the law because it allows all of that, in pdf.js you can modify file viewer.html file and define what functions and buttons are available for end users. In my project, digital library i have done that in Drupal and result is that users can read publications, system remembers last viewed page for them, they can copy text from files, but they can't copy entire file and share it further. You can see demo version of system at address http://www.digitalnab.tk, to access publications you have to click on button PRIJAVA and enter gost in first and second row (username and password) and then click Prijavi se. After that you can add node/1 after .tk/ in address bar to go to content (it will take some tome to open file because it has 636 pages).

And of course one more important thing about that is that nor webmasters nor users are dependent on local Adobe reader or any other installation on local machine, I have tested it on windows and linux pc, and allso on different smart phones and tablets and it is working without updates or any kind of instalations or upgrades.
knjigor
 
Posts: 10
Joined: Fri Feb 03, 2012 1:56 am

Re: Implementation of pdf.js

Postby asmecher » Fri Jan 31, 2014 9:23 am

Hi knjigor,

You're correct that this introduces the same embed plugin that OJS uses, but it also introduces a new plugin category ("viewableFiles") that allows new embedding/viewing techniques to be added by implementing a simple plugin. This would provide a good, simple basis to use for implementing pdf.js for OMP.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8452
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 2 guests