Addon for the Konik library allows attaching and extracting XML content to PDFs with the help of PDFBox