code wiki / (root) / nx_lib_pdf_diag.nx

nx_lib_pdf_diag.nx

buildroot/runtime/nx_lib_pdf_diag.nx

2225 B51 linesdepth 21pulls 135 transitivereach 0 importersview sourcekind tooltopic lib
docsdependenciesstructsconstsfunctions

about

nx_lib_pdf_diag.nx -- diagnose PDF text extraction quality on the saved PMC (Apache FOP) PDF: read file -> extract -> save text -> report printable ratio + samples, so the font-decode failure class is clear.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_lib_pdf.nx nx_lib_pdf_diag.nx

imports: nx_syscalls.nxnx_lib_pdf.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close dg_puts sys_write nx_lib_pdf_text nx_pdf_extract_text sys_mmap ↻ pt_expand_objstm sys_mmap ↻ pt_find pt_skipws pt_is_ws pt_read_uint nx_zlib_inflate sys_mmap ↻ nx_deflate_inflate sys_mmap ↻ nx_bitstream_alloc _deflate_inflate_block _deflate_bytes_consumed adler32 pt_itoa sys_mmap ↻ pt_build_fonts sys_mmap ↻ pt_find ↻ pt_is_ws ↻ pt_is_delim pt_is_ws ↻ pt_skipws ↻ pt_read_uint ↻ pt_resolve_font pt_find_obj sys_mmap ↻

structs

none

consts

6const K_MAGIC_16777216: i64 = 16777216

functions

8func dg_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
9func dg_wr(p: *u8, n: i64) -> i64 { sys_write(1, p, n); return 0 }
called by 1: main calls 1: sys_write
10func dg_putn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
19func main() -> i64