Skip to content

v0.52.0

Choose a tag to compare

@Ank-KhoaHo Ank-KhoaHo released this 06 Nov 12:03
· 0 commits to 12ecf7f9fea575f58c018102886d4203687819d1 since this release
aede07d

0.52.0 (2026-09-02)

Added

  • Core: a PDF's words and images can now be read with their positions.
    PdfEditor.ExtractText answers what a page says; ExtractWords answers where it says it, and
    ExtractImages returns the pictures it draws. Both return one list per page - [0] is page 1 -
    matching ExtractText, with byte[], Stream and file-path forms. Three new types carry the
    results: PdfWord, PdfImage and PdfBounds.

    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 a Bottom near 842, not near 0. One point is 1/72 inch.

    PdfImage.Png is 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.