Overview
I had the opportunity to create PDF files from IIIF manifest files. As a solution, I found the following repository, but was unable to get it working.
https://github.com/jbaiter/pdiiif
While the above repository uses JavaScript, this time I created a conversion tool using Python.
Usage
You can try it from the following notebook.
https://colab.research.google.com/github/nakamura196/ndl_ocr/blob/main/iiif2pdf.ipynb
During the initial installation, img2pdf is installed, but due to PIL version dependencies, a “RESTART RUNTIME” button will appear. Please click it and then re-run the same cell.

As options, three types are available: “Specifying a IIIF manifest URL,” “Specifying a folder path containing images,” and “Specifying a path to a local IIIF manifest file.”
As a note, as of the end of May 2023, only IIIF Presentation API v2 is supported. Support for v3 is being considered for the future.
Summary
We hope this serves as a useful reference for creating PDF files from IIIF.