Skip to content

Sample Python script for generating IIIF manifest from PDF image without need for image-server

License

Notifications You must be signed in to change notification settings

donaldgray/pdftomanifest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF to Manifest

A sample script to extract images from a PDF and create a single manifest for the PDF.

It also generates static image pyramid so that there is no need for an image-server.

pip install -r requirements.txt
python main.py /path/to/pdf.pdf

Testing

For local testing, use a tool like http-server for running local http-server in /output/iiif directory.

cd output/iiif
http-server -p 8000 --cors

The manifest should then render in a viewer, e.g. https://uv-v4.netlify.app/#?c=&m=&cv=1&manifest=http%3A%2F%2Flocalhost%3A8000%2Fmanifest.json

About

Sample Python script for generating IIIF manifest from PDF image without need for image-server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages