Liking cljdoc? Tell your friends :D

pdfplumber.page

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.
raw docstring

crop-pageclj

(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.
sourceraw docstring

page-view?clj

(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`.
sourceraw docstring

resolve-sourceclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close