Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.22 KB

README.md

File metadata and controls

32 lines (21 loc) · 1.22 KB

iiif-manifest-to-pdf

A simple demo of a node.js api for downloading a manifest to pdf.

Logic from vanda/cocktail.

You specify which canvases to add to your pdf through a list of canvas ranges.

Supports both IIIF v2 and v3 manifests.

Screenshot from 2022-05-27 16-06-37 View Output

Getting started

  1. Clone the repo

  2. Install dependancies npm install

  3. Run the server npm run start

  4. Navigate to http:localhost:5000

A page that lets you enter a file name, manifest url, and list of canvas ranges will show up.

Property Example
Filename my-manifest
Manifest url https://www-demo.canadiana.ca/iiif/oocihm.65600/manifest
Canvases 1-10, 15, 20-25 (This will take pages 1 to 10, 15, and 20 to 25 from your manifest and add them to your pdf.)

A pdf will automatically download after the server gets the manifest json and compiles the pdf with the canvas images.