Closed kimpham54 closed 3 years ago
from iiif: Hey all! Any feedback is welcome here, we’re trying to rendering PDFs into our UniversalViewer and are experiencing long load times, we don’t think it has anything to do with the viewer because when we try to download the pdf from source directly (we use duracloud) it takes just as long to load. Does anyone have experience with making pdfs load faster in your iiif viewer? We are thinking about caching pdfs, so making a second version of pdf that’s a smaller size specifically for the viewer - if you do that any recommendations for tools?
We can update IIIF manifest to render pdf pages. Need to pass in "page" url parameter with page number value. UniversalViewer does not show controls to move on to the next page of the PDF when done this way, it just shows the current page requested as an image
If the IIIF manifest contains a canvas for each page in the PDF, UniversalViewer will render the pagination controls, and load only a single page of the pdf for each canvas.
Each canvas should contain an image object including the resource url along with the the "page" parameter, one canvas for each page in the pdf
Need to determine or know the number of pages in the pdf when the IIIF manifest is generated.
Integrated the pdf page count into the manifest data object #353 Added a function to IIIF manifest generator to create multiple canvases for a pdf file and show one page from the pdf on each canvas #353 Updated the IIIF manifest to display a collection of manifests for a compound pdf object and enable manifest generation for individual compound object parts #353 Updated the IIIF thumbnail on click events and index link click events to update the pdf page thumbnail urls and the download object url #353
Summary of updates: