-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[api-minor] Support rich content in markup annotation #14182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the existing annotation_layer.js
code, we have a bunch of checks along these lines; should all of those perhaps have a parameters.data.richText
-case added now?
Also, should an explicitly defined PopupAnnotation
support rich-text; i.e. should we add richText: this.data.richText,
at end of the parameters listed here?
pdf.js/src/display/annotation_layer.js
Lines 1578 to 1585 in 1ab9a6e
const popup = new PopupElement({ | |
container: this.container, | |
trigger: Array.from(parentElements), | |
color: this.data.color, | |
titleObj: this.data.titleObj, | |
modificationDate: this.data.modificationDate, | |
contentsObj: this.data.contentsObj, | |
}); |
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/884ff506b1bb41a/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/884ff506b1bb41a/output.txt Total script time: 4.26 mins Published |
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/cae80ad5a68eac4/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/521b5b05e8a6aeb/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/cae80ad5a68eac4/output.txt Total script time: 22.72 mins
Image differences available at: http://54.241.84.105:8877/cae80ad5a68eac4/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/521b5b05e8a6aeb/output.txt Total script time: 33.11 mins
Image differences available at: http://54.193.163.58:8877/521b5b05e8a6aeb/reftest-analyzer.html#web=eq.log |
/botio test |
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/5266b98068c3358/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/fa99a7089872852/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/5266b98068c3358/output.txt Total script time: 23.17 mins
Image differences available at: http://54.241.84.105:8877/5266b98068c3358/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/fa99a7089872852/output.txt Total script time: 42.32 mins
Image differences available at: http://54.193.163.58:8877/fa99a7089872852/reftest-analyzer.html#web=eq.log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just about to land this, when it occurred to me that we can improve the API itself (for a non-viewer use-case); please see the inline comments.
- use the xfa parser but in the xhtml namespace.
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/bb019a21c3b5146/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/fe2f65d3ca1fc6c/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/bb019a21c3b5146/output.txt Total script time: 20.74 mins
Image differences available at: http://54.241.84.105:8877/bb019a21c3b5146/reftest-analyzer.html#web=eq.log |
/botio-linux browsertest |
From: Bot.io (Linux m4)ReceivedCommand cmd_browsertest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/7d9222fea67cf81/output.txt |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/fe2f65d3ca1fc6c/output.txt Total script time: 42.42 mins
Image differences available at: http://54.193.163.58:8877/fe2f65d3ca1fc6c/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/7d9222fea67cf81/output.txt Total script time: 20.03 mins
Image differences available at: http://54.241.84.105:8877/7d9222fea67cf81/reftest-analyzer.html#web=eq.log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me, thanks for implementing this!
/botio makeref |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/becd6a3beb90b3f/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @Snuffleupagus received. Current queue size: 1 Live output at: http://54.193.163.58:8877/f771cd5c81e8986/output.txt |
/botio-linux makeref |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @Snuffleupagus received. Current queue size: 1 Live output at: http://54.241.84.105:8877/5d09940815e5a9b/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/becd6a3beb90b3f/output.txt Total script time: 18.52 mins
|
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/5d09940815e5a9b/output.txt Total script time: 20.76 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/f771cd5c81e8986/output.txt Total script time: 39.34 mins
|
Fix #2966
Fix #13915