Liking cljdoc? Tell your friends :D
Clojure only.

pdfplumber.objects

Page object extraction (lines, rectangles, curves, and images) via a PDFGraphicsStreamEngine subclass.

PDFBox delivers path coordinates already transformed by the CTM into page space (bottom-left origin); we collect painted subpaths and flip them to the public top-left coordinate system. Only painted paths (stroked/filled) yield objects; clip-only / no-paint paths are discarded.

Page object extraction (lines, rectangles, curves, and images) via a
PDFGraphicsStreamEngine subclass.

PDFBox delivers path coordinates already transformed by the CTM into page
space (bottom-left origin); we collect painted subpaths and flip them to the
public top-left coordinate system. Only painted paths (stroked/filled) yield
objects; clip-only / no-paint paths are discarded.
raw docstring

imagesclj

(images doc)
(images doc opts)

Vector of drawn image objects. Accepts the same options as objects; decoded PNG :bytes are included only with :include-image-data? true.

Vector of drawn image objects. Accepts the same options as `objects`; decoded
PNG `:bytes` are included only with `:include-image-data? true`.
sourceraw docstring

objectsclj

(objects doc)
(objects doc {:keys [page bbox types include-image-data?]})

Vector of page object maps. Each is {:type :line|:rect|:curve|:image :x0 :top :x1 :bottom :page-number ...}. Image maps include pixel dimensions, color metadata, and :object-type :image. Options: :page (1-based), :types (a set to keep), :bbox (keep intersecting objects), and :include-image-data? (attach decoded PNG :bytes; false by default).

Vector of page object maps. Each is `{:type :line|:rect|:curve|:image :x0
:top :x1 :bottom :page-number ...}`. Image maps include pixel dimensions,
color metadata, and `:object-type :image`. Options: `:page` (1-based),
`:types` (a set to keep), `:bbox` (keep intersecting objects), and
`:include-image-data?` (attach decoded PNG `:bytes`; false by default).
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