Lightweight cropped page views. A view carries the document handle, a page
number, and a crop bbox; extraction functions accept it in place of a
document handle and restrict their output to the bbox. Nothing is copied or
translated — a view is just resolved into :page/:bbox options.
Lightweight cropped page views. A view carries the document handle, a page number, and a crop bbox; extraction functions accept it in place of a document handle and restrict their output to the bbox. Nothing is copied or translated — a view is just resolved into `:page`/`:bbox` options.
(crop-page doc {:keys [page bbox]})A cropped page view over doc. opts takes :page (1-based) and :bbox
[x0 top x1 bottom]. Pass the result to chars/words/text/objects to
restrict extraction to the region.
A cropped page view over `doc`. `opts` takes `:page` (1-based) and `:bbox` `[x0 top x1 bottom]`. Pass the result to `chars`/`words`/`text`/`objects` to restrict extraction to the region.
(page-view? x)True when x is a cropped page view produced by crop-page.
True when `x` is a cropped page view produced by `crop-page`.
(resolve-source source opts)Normalize a document-or-view plus opts into [doc merged-opts]. A view's
:page/:bbox become options; explicit opts override them.
Normalize a document-or-view plus `opts` into `[doc merged-opts]`. A view's `:page`/`:bbox` become options; explicit `opts` override them.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |