interplane.Get Omega
Read in your language

omega-pdf

Omega PDF: read and write PDF files in Omega

Brought by drakestapleton

branch main Branches Tags History

omega-pdf / src / head.om

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