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.
(annots doc)(annots doc {:keys [page bbox view-operations]})All page annotations with positional pdfplumber attributes.
All page annotations with positional pdfplumber attributes.
(curves doc)(curves doc opts)Dedicated collection of painted Bézier curve objects.
Dedicated collection of painted Bézier curve objects.
(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.
(horizontal-edges doc)(horizontal-edges doc opts)Horizontal subset of edges.
Horizontal subset of `edges`.
(hyperlinks doc)(hyperlinks doc opts)URI link annotations only.
URI link annotations only.
(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`.
(lines doc)(lines doc opts)Dedicated collection of painted line objects.
Dedicated collection of painted line objects.
(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).(objects-by-type doc)(objects-by-type doc opts)Object collections grouped under singular type keywords.
Object collections grouped under singular type keywords.
(rects doc)(rects doc opts)Dedicated collection of painted rectangle objects.
Dedicated collection of painted rectangle objects.
(vertical-edges doc)(vertical-edges doc opts)Vertical subset of edges.
Vertical subset of `edges`.
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 |