Skip to content

Custom eBook Readers

Mike's Pub edited this page Jan 24, 2026 · 1 revision

Supported Formats

COPS provides web-based ebook readers for these ebook formats

EPUB Reader

/*
 * Choose preferred epub reader when viewing epub files online:
 * 'monocle' (default)
 * 'epubjs'
 * 'custom-reader.html?url=' (custom reader template - adapt as needed)
 */
$config['cops_epub_reader'] = 'monocle';

Epub.js

Based on Epub.js Reader

Screenshot 2026-01-24 163549

Monocle

Based on Monocle

Screenshot 2026-01-24 163803

Custom Reader

Adapt templates/custom-reader.html with other Javascript-based EPUB reader script, with ?url=... or similar to pass along the EPUB link.

Screenshot 2026-01-24 164135

Comics (CBZ/CBR/CBT)

/*
 * Choose comic-reader template URL when viewing comic files online:
 * '' (default)
 * 'comic-reader.html?url='
 * 'codedread-kthoom.html?bookUri=' (with mikespub/codedread-kthoom package)
 *
 * Note: for kthoom please install the package with composer:
 *
 * $ composer require mikespub/codedread-kthoom
 */
$config['cops_comic_reader'] = '';

Based on Web Comic Reader, @codedread kthoom or other comic reader

PDF Viewer

/*
 * Choose pdfjs-viewer template URL when viewing pdf files online:
 * '' (default)
 * 'pdfjs-viewer.html?file='
 *
 * Note: the release package cops-3.x.x-php82.zip only contains
 * minimal parts of the mozilla/pdfjs-dist package. If your PDF
 * shows errors, please install the full package with composer:
 *
 * $ rm -r vendor/mozilla/pdfjs-dist/
 * $ composer install -o
 */
$config['cops_pdfjs_viewer'] = '';

Based on Mozilla PDF.js

Clone this wiki locally