Skip to main content

Monocle

Posted in

Monocle is a modular document reader, with support for different file formats via different backends.

Monocle integrates with the rest of LeechCraft, so, for example, when you click a link to a PDF document in Poshuku, it is suggested to be opened by Monocle after it's downloaded.

Features

  • Tables of contents.
  • Support for links in documents (like in PDF files).
  • Support for forms in documents (like, again, in PDF documents).
  • Support for searching in documents like PDF and FB2.
  • Thumbnails for documents visually highlighting the currently displayed part of the pages.
  • Support for selecting areas and copying them as image or as text (if applicable), or even searching via modules like Pogooglue or SeekThru.
  • Fulscreen presentation mode.
  • Limited cache for already-rendered images.
  • Displaying one or two pages at once.
  • Paginated navigation.
  • Automatic document reload on document file changes.
  • Integration with the rest of LeechCraft.

The exact feature set depends on the backend used and document type.

Screenshots

Searching in a PDF documentSearching in a PDF document

Page thumbnailsPage thumbnails

PDF document with formsPDF document with forms

FB2 documentFB2 document

Backends

Different file formats are supported by different backends. For now the following backends exist:

PDF (Poppler-based)

The most feature-rich backend, based on the Poppler rendering library.

fb2

Self-written parser for fb2 books. Doesn't support images in fb2 documents for now.

DjVu

Based on the DjVuLibre suite.

PostScript

Based on the libspectre library.

PDF (mupdf-based)

Another backend for PDF documents. Some claim that it renders more nicely than Poppler. Though, for now it doesn't support links, forms, text searching and possibly some other fancy things Poppler supports.

Please note that since mupdf is built as static library, you need to build mupdf with the -fPIC option.