From IRC, this should be fairly trivial to mangle the document, but it'd have to be root-node only, and I'm not sure I want to go down that route.
From the web UI, this is likely going to require a custom xonomy JS action function - see page 19/20 of https://michmech.github.io/pdf/xonomy.pdf