would this help? https://www.linux.com/learn/manipulating-pdfs-pdf-toolkit

// @kdfrawg