Liking cljdoc? Tell your friends :D

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

annotsclj

(annots doc)
(annots doc {:keys [page bbox view-operations]})

All page annotations with positional pdfplumber attributes.

All page annotations with positional pdfplumber attributes.
sourceraw docstring

curvesclj

(curves doc)
(curves doc opts)

Dedicated collection of painted Bézier curve objects.

Dedicated collection of painted Bézier curve objects.
sourceraw docstring

edgesclj

(edges doc)
(edges doc opts)

Normalized horizontal and vertical edges from lines, rectangles, and curves.

Normalized horizontal and vertical edges from lines, rectangles, and curves.
sourceraw docstring

horizontal-edgesclj

(horizontal-edges doc)
(horizontal-edges doc opts)

Horizontal subset of edges.

Horizontal subset of `edges`.
sourceraw docstring

(hyperlinks doc)
(hyperlinks doc opts)

URI link annotations only.

URI link annotations only.
sourceraw 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

linesclj

(lines doc)
(lines doc opts)

Dedicated collection of painted line objects.

Dedicated collection of painted line objects.
sourceraw docstring

objectsclj

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

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

objects-by-typeclj

(objects-by-type doc)
(objects-by-type doc opts)

Object collections grouped under singular type keywords.

Object collections grouped under singular type keywords.
sourceraw docstring

rectsclj

(rects doc)
(rects doc opts)

Dedicated collection of painted rectangle objects.

Dedicated collection of painted rectangle objects.
sourceraw docstring

vertical-edgesclj

(vertical-edges doc)
(vertical-edges doc opts)

Vertical subset of edges.

Vertical subset of `edges`.
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