The src content is compiled at runtime and it depends on some options during page creation.
There’s a script that appends dynamically the image content to the src field.
So it seems that the creation of the PDF doesn’t execute again the script, that’s why i cannot find the image where is expected.
Thank you, i’ve found a way to bypass this, i now generate dynamically the image from the canvas and put the “data:image/png;base64,” in the src instruction for the tag.
Small addition: if inside the browser i right-click on the image i’m able to save as image. Inspecting the html source code i see that the square containing the map is located inside a <canvas> tag.
I’ve searched around and seen that probably pd4ml support printing canvas by using this instruction:
pd4ml.enable.canvas.interpreter
Well, i hope to be on the correct direction, but still i don’t know how to use this instruction and where should be located 🙂