We’re generating PDF documents using HTML2PDF to render multiple html pages to individual pages within a PDF.
Now we need to be able to open that PDF and locate where certain specific images are located (x,y position)
I can get the matrix of each image, however, I don’t know anything about which image is which.
Is there a way to attach metadata to each image in the HTML that can be passed along to the PDF element then later parsed?
For example, one page has two signature boxes, each one is an image (base64 in html). The location in HTML could change at any time based on other content. I need to be able to take the rendered PDF and extract the specific x,y coords for each of those images. Any way to name these or put attributes on it that can be read on pdf?