Batteries
PDF
PDF files made from parts, read, and filled: Mote's own battery, in a worker.Making one
pdf.make takes a list of parts (headings, paragraphs, tables, pictures, drawing) and options for the whole file, and gives its bytes.An invoiceEdit the lines, make the file, and read its text back out of it.
Reading one
pdf.info says what a file is; pdf.read gives each page's text, pdf.words each word with its box, pdf.images the pictures a page draws.Open a PDFDrop one here, pick one, or read the invoice made above. Nothing leaves the page.
Drop a PDF here Forms
pdf.fields lists a form's fields; pdf.fill fills them by name, and with flatten draws them into the page for good.