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 nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap 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 pt_itoa sys_mmap ↻ pt_build_fonts sys_mmap ↻ pt_find ↻ pt_is_ws ↻

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