Public API for pdfplumber-clj: open PDFs and extract text, words, characters, geometric objects, and tables as plain Clojure data.
Public API for pdfplumber-clj: open PDFs and extract text, words, characters, geometric objects, and tables as plain Clojure data.
(chars source)(chars source opts)Vector of character maps. Accepts a document handle or a cropped page view.
See pdfplumber.text/chars.
Vector of character maps. Accepts a document handle or a cropped page view. See `pdfplumber.text/chars`.
(crop-page doc opts)A cropped page view (restricts extraction to a bbox). See
pdfplumber.page/crop-page.
A cropped page view (restricts extraction to a bbox). See `pdfplumber.page/crop-page`.
(extract-table source)(extract-table source opts)Extract a single table. Accepts a document handle or a cropped page view. See
pdfplumber.table/extract-table.
Extract a single table. Accepts a document handle or a cropped page view. See `pdfplumber.table/extract-table`.
(extract-tables source)(extract-tables source opts)Extract tables as a vector. Accepts a document handle or a cropped page view.
See pdfplumber.table/extract-tables.
Extract tables as a vector. Accepts a document handle or a cropped page view. See `pdfplumber.table/extract-tables`.
(metadata doc)Document metadata map. See pdfplumber.document/metadata.
Document metadata map. See `pdfplumber.document/metadata`.
(objects source)(objects source opts)Vector of geometric object maps (lines, rects, curves). Accepts a document
handle or a cropped page view. See pdfplumber.objects/objects.
Vector of geometric object maps (lines, rects, curves). Accepts a document handle or a cropped page view. See `pdfplumber.objects/objects`.
(open-pdf source)Open a PDF, returning a document handle. See pdfplumber.document/open-pdf.
The caller must close it (or use with-pdf).
Open a PDF, returning a document handle. See `pdfplumber.document/open-pdf`. The caller must close it (or use `with-pdf`).
(page doc n)Page map for 1-based page number n. See pdfplumber.document/page.
Page map for 1-based page number `n`. See `pdfplumber.document/page`.
(page-view? x)True when x is a cropped page view. See pdfplumber.page/page-view?.
True when `x` is a cropped page view. See `pdfplumber.page/page-view?`.
(pages doc)Vector of page maps. See pdfplumber.document/pages.
Vector of page maps. See `pdfplumber.document/pages`.
(text source)(text source opts)Reconstructed text string. Accepts a document handle or a cropped page view.
See pdfplumber.text/text.
Reconstructed text string. Accepts a document handle or a cropped page view. See `pdfplumber.text/text`.
(with-pdf [binding source] & body)Open source, bind the document handle to binding, evaluate body, and
always close the document on exit (including on exception).
(with-pdf [doc "statement.pdf"]
(text doc {:page 1}))
Open `source`, bind the document handle to `binding`, evaluate `body`, and
always close the document on exit (including on exception).
(with-pdf [doc "statement.pdf"]
(text doc {:page 1}))(words source)(words source opts)Vector of word maps. Accepts a document handle or a cropped page view. See
pdfplumber.text/words.
Vector of word maps. Accepts a document handle or a cropped page view. See `pdfplumber.text/words`.
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 |