Geometric object extraction (lines, rectangles, curves) 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.
Geometric object extraction (lines, rectangles, curves) 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.
(objects doc)(objects doc {:keys [page bbox types]})Vector of geometric object maps. Each is {:type :line|:rect|:curve :x0 :top :x1 :bottom :page-number ...}; lines also carry :orientation
(:horizontal/:vertical/:other). Options: :page (1-based), :types
(a set to keep), and :bbox (keep objects intersecting it).
Vector of geometric object maps. Each is `{:type :line|:rect|:curve :x0 :top
:x1 :bottom :page-number ...}`; lines also carry `:orientation`
(`:horizontal`/`:vertical`/`:other`). Options: `:page` (1-based), `:types`
(a set to keep), and `:bbox` (keep objects intersecting it).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 |