Metadata in PDFs from HTML
I need to carry some metadata – which could amount to just an ID – from the source HTML, through to the PDF using WeasyPrint, eventually ending up somehow addressable in the HTML rendered by pdf.js (more specifically, react-pdf). So, for example, if I have this element in my source HTML: <p class="x00-chapter-title---toc-level" id="my-id">Contents</p> Using