SIGN IN SIGN UP

feat(sdks): add parsers[].blocks for typed PDF layout blocks (#4351)

* feat(sdks): add parsers[].blocks for typed PDF layout blocks

Expose the v2 PDF parser blocks option and Document.blocks across
the JS, Python, Go, Java, Ruby, PHP, Rust, and .NET SDKs, and bump
each package version so merge auto-publishes the new APIs.

Co-authored-by: Abimael Martell <abimaelmartell@users.noreply.github.com>

* test(rust-sdk): cover PDF parser blocks serialization and hydration

Co-authored-by: Abimael Martell <abimaelmartell@users.noreply.github.com>

* fix(java-sdk): type Document.blocks as List<PdfPageBlocks>

Replace the raw List<Map<String, Object>> with typed page/block models
so Java callers get compile-time access to pageNumber, items, bbox, and
confidence, matching Menu/Product and the other SDKs.

Co-authored-by: Abimael Martell <abimaelmartell@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Abimael Martell <abimaelmartell@users.noreply.github.com>
A
Abimael Martell committed
b3a6c73e463a6d6dff112df1c0ccaeda96872ccb
Parent: 2014d38
Committed by GitHub <noreply@github.com> on 8/19/2026, 11:10:15 PM