...master 2026-11-12 (1037e2069+unstaged)

TreeArchive

only mutool run

Constructors

class TreeArchive()

Create a new empty tree archive.

var treeArchive = new mupdf.TreeArchive()

Instance methods

TreeArchive.prototype.add(name, buffer)

Add a named buffer to a tree archive.

var buf = new mupdf.Buffer()
buf.writeLine("hello world!")
var archive = new mupdf.TreeArchive()
archive.add("file2.txt", buf)
print(archive.hasEntry("file2.txt"))