Code Monkey home page Code Monkey logo

pdfembed's Introduction

PDF Embed

A plugin for Omeka

This is a simple plugin that uses either the browser's built-in or plugin-added PDF display capabilities or Mozilla's PDF.js to embed PDFs on item and file pages.

pdfembed's People

Contributors

zerocrates avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pdfembed's Issues

pdf viewer displaying instead of thumbnails

First, this plugin is great. Thanks for creating it.

However, the viewer is displaying instead of thumbnail images on collection/show and solr-search results pages. I believe this is happening because I am looping through the files for each item and grabbing the square thumb for the pdf file. So I'm using file_markup (see below) and the pdf embed viewer is called instead of the thumbnail image.

echo file_markup($file, array('imageSize' => 'square_thumbnail', 'alt' => $itemTitle, 'linkToFile' => false));

How can I only display the pdf viewer in the item/show template, and not in all places where file_markup is called?

Thanks,
Anneliese

PDFEmbed & Exhibit Builder conflict

If PDFEmbed is enabled, then File with Text in Exhibit Builder will display the PDF viewer window on the exhibit page no matter what setting is selected (thumbnail, square thumbnail, or fullsize). PDF should only embed on fullsize option.

EZproxy and PDFEmbed

I am restricting access to an Omeka install via htaccess and discovered that PDFs are only viewable if:
• IP is included in the .htacces file that I use to restrict the world from the Omeka
• The clients hosts file is edited: 146.96.128.35 library.gc.cuny.edu

I think that the issue is either:
• There is an incompatibility between the JavaScript that is used in the PDF embed plugin and EZproxy. Hence if those two conditions exist the proxy is not being used. I have seen incompatibilities similar to this in the past. For example, SciFinder’s ‘drawing tools’ did not work for almost 6 months because of a similar incompatibility.

• The fact that we have our server behind a the load balancer and a virtual IP, which might be confusing the client requests.

I am not seeing many error messages, so it is difficult to diagnosis.

The plugin has two settings:
"Object" uses the browser's native PDF viewer or plugins like Adobe Reader. "PDF.js" uses a cross-browser JavaScript-based PDF viewer.

I see this error when I use the Object setting of the plugin:
[Wed Feb 03 09:52:44 2016] [error] [client 146.96.128.15] client denied by server configuration: /var/www/html/legacy/files/original/77864757253e251fef8e19b04ef547e6.pdf, referer: http://myfavesite.ezproxy.edu/legacy/items/show/12130

I see this error in the browser when I use the JS setting of the plugin:
PDF.js v1.0.473 (build: 1694cd8)
Message: Unexpected server response (0) while retrieving PDF "http://myfavesite.edu/legacy/files/original/f2251a58d310d591fece5a22630e0eec.pdf".

PdfEmbed and large PDFs

Hello, we have noticed that large PDF documents (exceeding 200 pages) do not display in the Main Viewer, however, they do display correctly at the item level.

Is there a size constraint on PDFs being displayed in the Main Viewer window?

PDFEmbed is configured with a Height of 1000 and the Embed Type as pdf.js.

I appreciate your help and suggestions!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.