Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-pdf/blob/main/src/head.om # omega-pdf Omega PDF: read and write PDF files in Omega Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-pdf / src / head.om` 68 lines ยท 2717 bytes Raw Blame History 1 om2 2 note omega-pdf core. Source: ISO 32000-1:2008, public PDF32000_2008.pdf. 3 note Reference SHA256 `9de0ca9e8570d6209e8bd48a355be8eb6ec376acfc3fc3ae97cd8730351417ff`. 4 note Public API and representation: README.md (commands, exit codes, Bounds) and PIN. 5 note Bounds: 262143 allocated nodes, 16 MiB decoded names/strings, 65535 object IDs, 6 note 4096 pages, 64 parser/page nesting levels, 64 reference/load levels, 1024 xref sections. 7 note A name has at most 256 decoded bytes, a string 65536, a numeric token 128. 8 note Structural work is capped at `100000000` byte/token steps per opened file. 9 note Data pools: pbytes, pdbuf, pfbuf, pmbuf each `16777216` uchar; node slots below 10 note use ten 262144-element 64-bit arrays. Page marks use 262144 bytes. 11 note Xref slots use six 65536-element 64-bit arrays plus a byte loading marker; 12 note object-stream directories use two 65536-element 64-bit arrays and byte seen marks. 13 note File window is 65536 bytes. All input-derived bounds refuse 63 before indexing. 14 global ptype ulong 262144 15 global pnum long 262144 16 global pgen ulong 262144 17 global preal f64 262144 18 global pfirst ulong 262144 19 global pnext ulong 262144 20 global pstart ulong 262144 21 global plen ulong 262144 22 global psoff ulong 262144 23 global pslen ulong 262144 24 global pbytes uchar `16777216` 25 global pobjs ulong 65536 26 global pfd int 1 27 global psize ulong 1 28 global proot ulong 1 29 global pinfo ulong 1 30 global pcount ulong 1 31 global ppages ulong 4096 32 global pres ulong 4096 33 global pbox f64 16384 34 global prot long 4096 35 global pcont ulong 4096 36 global pdbuf uchar `16777216` 37 global pdlen ulong 1 38 note Core-private pools. Xref type: 0 unseen, 1 free/unknown, 2 uncompressed, 3 compressed. 39 global pxt ulong 65536 40 global pxa ulong 65536 41 global pxb ulong 65536 42 global pxrev ulong 65536 43 global poload uchar 65536 44 global pmids ulong 65536 45 global pmoffs ulong 65536 46 global pmseen uchar 65536 47 global pmark uchar 262144 48 global pvis ulong 1024 49 global pwin uchar 65536 50 global ptok uchar 256 51 global pfbuf uchar `16777216` 52 global pmbuf uchar `16777216` 53 note pstate: node top, byte top, position, source mode, memory limit, window base, 54 note window length, token length, work, load depth, xref count, trailer Size, 55 note revision, xref-stream flag, object-stream flag, effective minor version, decode depth, 56 note slots 17-19 reserved, open flag 20, token node 22, resolved filter count 23. 57 global pst ulong 24 58 note Iterative page DFS; effective inheritance and start page count per frame. 59 global ptnode ulong 64 60 global ptkid ulong 64 61 global ptres ulong 64 62 global ptbox ulong 64 63 global ptrot long 64 64 global ptbase ulong 64 65 global ptexp ulong 64 66 global ptcrop ulong 64 67 note Effective CropBox nodes are exposed for lossless page copying. 68 global pcrop ulong 4096