boston-library / commonwealth-vlr-engine

Commonwealth-VLR-Engine is a Rails engine for creating Blacklight apps that provide access to content from Solr/Fedora, packaging a number of feature-rich enhancements and modifications.
Apache License 2.0
8 stars 2 forks source link

embedded PDF viewer #90

Closed ebenenglish closed 9 months ago

ebenenglish commented 1 year ago

When I am on the show page for an item And the primary file for the item is a PDF I should see an embedded PDF viewer application that allows me to search within and read the content So that I can view the content without having to download the PDF file

Investigate using PDF.js for this.

Example item with PDF as primary file:

https://www.digitalcommonwealth.org/search/commonwealth:r494vt25n

Direct URL for PDF file:

https://bpldcassets.blob.core.windows.net/derivatives/documents/commonwealth:r494vt26x/document_access.pdf

First tasks:

ebenenglish commented 1 year ago

Example embedded PDF viewer:

ebenenglish commented 1 year ago

Another example, looks to be using PDF.js: https://digitalcommons.framingham.edu/uncategorized/IO_a753cd78-e951-45e7-bfea-698dd0162c2b/

Here's an example using the Universal Viewer, though this PDF doesn't seem to be searchable so maybe not a good comparison: https://www.chicopeepubliclibrary.org/archives/items/show/3671

ebenenglish commented 1 year ago

Another example, looks like PDF.js in an iframe: https://ptsongasuml.omeka.net/items/show/11439

ebenenglish commented 1 year ago

Also PDF.js inside iframe: https://openarchives.umb.edu/digital/collection/p15774coll11/id/97

ebenenglish commented 9 months ago

Fixed via #121