Expand description
The pdf library: what a chunk tells the PDF backend (luatexdir/lua/lpdflib.c).
Three kinds of thing pass through it, each into crate::backend, the
state \pdfextension and \pdfvariable keep, so the file is written with
them:
- Strings for the file’s dictionaries –
pdf.setcatalog,setinfo,setnames,settrailer,setpageresources,setpageattributes,setpagesattributes,settrailerid– kept apart from\pdfextension’s as luatex keeps them (Backend::lua), a string per key (a value that is not a string is ignored,l_set_pdf_value), and read back by the matching getter.setxformresourcesandsetxformattributesare kept and read back here; no form is written from them yet. - The backend’s variables –
compresslevel,objcompresslevel,decimaldigits, the PDF version and the rest – which are\pdfvariable’s entries, read and stored as luatex reads and stores them, so the writer,\the\pdfvariableand Lua agree. - Objects –
pdf.obj,pdf.immediateobj,pdf.reserveobj– read with luatex’s argument checking and numbered, held and written by the backend as\pdfextension objis.
What has no meaning before shipout returns what luatex returns then: the position functions answer 0, the matrix is the identity.
Structs§
- State
- What a chunk set that the backend does not hold.
Functions§
- state
- What the chunks told the backend that it does not hold itself.