Replies: 1 comment
-
Ok, managed to coerce GPT-4o into giving me the answer:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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:
Using
qpdf
, I was able to generate a text-readable version of the generated PDF, and happily found this:...which gives me hope!
But now I am not sure how to use
pdf.js
to access these details, or even tell me what they mean. Presumably coordinates on the page.How do I do this?
Beta Was this translation helpful? Give feedback.
All reactions