ilusm.dev

pdf

PDF generation, manipulation, forms.

Load with: use pdf

Quick example

use pdf

result = pdfld("value")
prn(result)

Functions

Document

pdfne()

Creates a new instance.

pdfld(pt)

Performs the operation. Takes pt.

pdfsv(doc, pt)

Performs the operation. Takes doc, pt.

Pages

pdfdp(doc, w, h)

Performs the operation. Takes doc, w, h.

pdfgt(doc, i)

Performs the operation. Takes doc, i.

Text

pdfst(pg, x, y, t, fn, sz, c)

Sets a value or starts a process. Takes pg, x, y, t, fn, sz, c.

pdfmt(pg, x, y, mw, t, fn, sz, c)

Performs the operation. Takes pg, x, y, mw, t, fn, sz, c.

Shapes

pdfrc(pg, x, y, w, h, c)

Performs the operation. Takes pg, x, y, w, h, c.

pdfcr(pg, x, y, r, c)

Creates a new instance. Takes pg, x, y, r, c.

pdfel(pg, x, y, w, h, c)

Performs the operation. Takes pg, x, y, w, h, c.

pdfln(pg, x1, y1, x2, y2, w, c)

Performs the operation. Takes pg, x1, y1, x2, y2, w, c.

Images

pdfm0(pg, x, y, img, w, h)

Performs the operation. Takes pg, x, y, img, w, h.

Tables

pdftb(pg, x, y, rw, rh, dt, sty)

Performs the operation. Takes pg, x, y, rw, rh, dt, sty.

Forms

pdffl(doc, nm, ty, x, y, w, h)

Performs the operation. Takes doc, nm, ty, x, y, w, h.

pdfff(doc, nm, vl)

Performs the operation. Takes doc, nm, vl.

Links

pdfl0(pg, x, y, w, h, url)

Performs the operation. Takes pg, x, y, w, h, url.

Annotations

pdfan(pg, x, y, t)

Performs the operation. Takes pg, x, y, t.

Merge/Split

pdfmg(docs)

Performs the operation. Takes docs.

pdfsp(doc, ps)

Performs the operation. Takes doc, ps.

Encryption

pdfnc(doc, pw)

Performs the operation. Takes doc, pw.

pfde(doc, pw)

Decodes. Takes doc, pw.

HTML to PDF

pdfht(ht)

Performs the operation. Takes ht.

Markdown to PDF

pdfmd(md)

Performs the operation. Takes md.

Notes

  • PDF generation and parsing.