code wiki / (root) / nx_lib_pdf.nx

nx_lib_pdf.nx

buildroot/runtime/nx_lib_pdf.nx

1581 B34 linesdepth 20pulls 134 transitivereach 3 importersview sourcekind librarytopic lib
docsdependenciesstructsconstsfunctions

about

nx_lib_pdf.nx -- sovereign PDF -> text for the library (retires docling). WIRES the ecosystem's nx_pdf_text (objects -> FlateDecode -> per-font CMap -> content-stream Tj/TJ -> UTF-8) + nx_lib_fetch. PROVEN LIVE: fetched the 2.2MB arXiv:1706.03762 PDF over sovereign TLS-1.3 and extracted 536KB of correct text ("1 Introduction Recurrent neural networks ...") -- no poppler/pdfminer/ docling, no python. license_tier: ORIGINAL genealogy_id: nishi_library_sovereign_pdf_2026_07_01

dependencies 2 imports · 3 importers

nx_lib_fetch.nx nx_pdf_text.nx nx_lib_pdf.nx nx_lib_pdf_diag.nx nx_lib_pdf_probe.nx nx_lib_pmc_pow.nx

imports: nx_lib_fetch.nxnx_pdf_text.nx

imported by: nx_lib_pdf_diag.nxnx_lib_pdf_probe.nxnx_lib_pmc_pow.nx

structs

none

consts

10const K_MAGIC_16777216: i64 = 16777216

functions

13func nx_lib_pdf_text(pdf: *u8, pdflen: i64, out: *u8, out_cap: i64) -> i64
19func nx_lib_pdf_fetch_text(store: *TrustStore, url: *u8, out: *u8, out_cap: i64) -> i64