1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-24 09:08:07 +02:00

[Editor] Take into account the crop box when saving/printing some highlighted text (bug 1872721)

This commit is contained in:
Calixte Denizet 2024-01-02 18:53:33 +01:00
parent 231c79800b
commit 35863cd54b
4 changed files with 65 additions and 13 deletions

View file

@ -620,3 +620,4 @@
!issue17215.pdf
!bug1863910.pdf
!bug1865341.pdf
!bug1872721.pdf

BIN
test/pdfs/bug1872721.pdf Executable file

Binary file not shown.

View file

@ -8411,5 +8411,52 @@
"rotation": 0
}
}
},
{
"id": "bug1872721-highlight-editor-save-print",
"file": "pdfs/bug1872721.pdf",
"md5": "8318654cda60dc71df9e62a3c78cf193",
"rounds": 1,
"type": "eq",
"save": true,
"print": true,
"annotationStorage": {
"pdfjs_internal_editor_0": {
"annotationType": 9,
"color": [ 83, 255, 188 ],
"opacity": 1,
"quadPoints": [
209.0454157057542,
718.4044878560951,
270.0049972773625,
718.4044878560951,
209.0454157057542,
731.7427487256604,
270.0049972773625,
731.7427487256604
],
"outlines": [
[
197.85841250000001,
709.458959,
197.85841250000001,
722.8621772,
259.003853,
722.8621772,
259.003853,
709.458959
]
],
"pageIndex": 0,
"rect": [
197.85841250000001,
709.458959,
259.003853,
722.8621772
],
"rotation": 0,
"structTreeParentId": null
}
}
}
]