Repository navigation
v0.52.0
0.52.0 (2026-09-02)
Added
-
Core: a PDF's words and images can now be read with their positions.
PdfEditor.ExtractTextanswers what a page says;ExtractWordsanswers where it says it, and
ExtractImagesreturns the pictures it draws. Both return one list per page -[0]is page 1 -
matchingExtractText, withbyte[],Streamand file-path forms. Three new types carry the
results:PdfWord,PdfImageandPdfBounds.Coordinates start at the page's BOTTOM-left, which is the PDF convention rather than a screen
one: a word near the top of A4 has aBottomnear 842, not near 0. One point is 1/72 inch.PdfImage.Pngis null when the pixels could not be re-encoded, and that is a normal outcome
rather than an error - one image in an unusual colour space does not cost you the rest of the
document. Check it before use. Those bytes are also a re-encoding, not the embedded file, so
they are not byte-identical to an original PNG or JPEG and the byte count usually differs.A page with no text layer yields an empty list. A scanned document is images; OCR remains out
of scope.Nothing existing changed or was removed. The dependency-injection mirror follows in the next
release: the extensions package builds against the published core.