[Editor] Support svg images in the stamp annotation

createImageBitmap doesn't work with svg files (see bug 1841972), so we need to workaround
this in using an Image.
When printing/saving we must rasterize the image, hence we get the biggest bitmap as image
reference to avoid duplications or poor quality on rendering.
This commit is contained in:
Calixte Denizet 2023-07-06 15:32:11 +02:00
parent eb2527e9d7
commit 4fcc2ef23f
7 changed files with 285 additions and 14 deletions

View file

@ -33,6 +33,7 @@ async function runTests(results) {
"freetext_editor_spec.js",
"ink_editor_spec.js",
"scripting_spec.js",
"stamp_editor_spec.js",
],
});