-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[api-minor] Render pushbuttons on their own canvas (bug 1737260) #14247
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
calixteman
commented
Nov 6, 2021
•
edited
Loading
edited
- First step to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1737260;
- several interactive pdfs use the possibility to hide/show buttons to show different icons;
- render pushbuttons on their own canvas and then insert it the annotation_layer;
- update test/driver.js in order to convert canvases for pushbuttons into images.
f51badb
to
a092191
Compare
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.
A couple of initial comments, based on a quick look at this patch.
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/b91c780f3697f40/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/35402b905beec72/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/35402b905beec72/output.txt Total script time: 23.52 mins
Image differences available at: http://54.241.84.105:8877/35402b905beec72/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/b91c780f3697f40/output.txt Total script time: 41.71 mins
Image differences available at: http://54.193.163.58:8877/b91c780f3697f40/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.
Another thing that I'm guessing doesn't currently work is the useOnlyCssZoom
mode, when set either explicitly in the appOptions or implicitly by increasing the zoom level (a lot) in the viewer.
Most likely you'll need to modify the width/height of the annotationCanvas
es in that case, perhaps similar to how the main page-canvas is handled when CSS-zooming is being used.
632f718
to
8a8dcfd
Compare
/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/3079be7f4e522be/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/6ae9667fd4c42c3/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/3079be7f4e522be/output.txt Total script time: 23.65 mins
Image differences available at: http://54.241.84.105:8877/3079be7f4e522be/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/6ae9667fd4c42c3/output.txt Total script time: 42.01 mins
Image differences available at: http://54.193.163.58:8877/6ae9667fd4c42c3/reftest-analyzer.html#web=eq.log |
- First step to fix https://bugzilla.mozilla.org/show_bug.cgi?id=1737260; - several interactive pdfs use the possibility to hide/show buttons to show different icons; - render pushbuttons on their own canvas and then insert it the annotation_layer; - update test/driver.js in order to convert canvases for pushbuttons into images.
/botio makeref |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @brendandahl received. Current queue size: 0 Live output at: http://54.241.84.105:8877/96a8b3b61268066/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @brendandahl received. Current queue size: 0 Live output at: http://54.193.163.58:8877/b7e9086d8e49047/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/96a8b3b61268066/output.txt Total script time: 21.49 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/b7e9086d8e49047/output.txt Total script time: 39.11 mins
|
After this merge: The buttons on testcase in https://bugzilla.mozilla.org/show_bug.cgi?id=1737260 are not visible anymore. Tested on Win10 with FF. |
- it's a regression from PR mozilla#14247: - before the PR, the button was rendered on the canvas whatever its status was; - after the PR, the button image has been moved in an other canvas so when the button is not renderable (because it has no actions) then the image is not added the HTML element. - the buttons in the pdf in bug 1737260 or in the pdf in mozilla#14308 were not visible - make the button always renderable but don't add the link element if it's useless.
- it's a regression from PR mozilla#14247: - before the PR, the button was rendered on the canvas whatever its status was; - after the PR, the button image has been moved in an other canvas so when the button is not renderable (because it has no actions) then the image is not added the HTML element. - the buttons in the pdf in bug 1737260 or in the pdf in mozilla#14308 were not visible - make the button always renderable but don't add the link element if it's useless.
- it's a regression from PR mozilla#14247: - before the PR, the button was rendered on the canvas whatever its status was; - after the PR, the button image has been moved in an other canvas so when the button is not renderable (because it has no actions) then the image is not added the HTML element. - the buttons in the pdf in bug 1737260 or in the pdf in mozilla#14308 were not visible - make the button always renderable but don't add the link element if it's useless.
- it's a regression from PR mozilla#14247: - before the PR, the button was rendered on the canvas whatever its status was; - after the PR, the button image has been moved in an other canvas so when the button is not renderable (because it has no actions) then the image is not added the HTML element. - the buttons in the pdf in bug 1737260 or in the pdf in mozilla#14308 were not visible - make the button always renderable but don't add the link element if it's useless.
- it's a regression from PR mozilla#14247: - before the PR, the button was rendered on the canvas whatever its status was; - after the PR, the button image has been moved in an other canvas so when the button is not renderable (because it has no actions) then the image is not added the HTML element. - the buttons in the pdf in bug 1737260 or in the pdf in mozilla#14308 were not visible - make the button always renderable but don't add the link element if it's useless.
- it's a regression from PR mozilla#14247: - before the PR, the button was rendered on the canvas whatever its status was; - after the PR, the button image has been moved in an other canvas so when the button is not renderable (because it has no actions) then the image is not added the HTML element. - the buttons in the pdf in bug 1737260 or in the pdf in mozilla#14308 were not visible - make the button always renderable but don't add the link element if it's useless.
- it's a regression from PR mozilla#14247: - before the PR, the button was rendered on the canvas whatever its status was; - after the PR, the button image has been moved in an other canvas so when the button is not renderable (because it has no actions) then the image is not added the HTML element. - the buttons in the pdf in bug 1737260 or in the pdf in mozilla#14308 were not visible - make the button always renderable but don't add the link element if it's useless.
- it's a regression from PR mozilla#14247: - before the PR, the button was rendered on the canvas whatever its status was; - after the PR, the button image has been moved in an other canvas so when the button is not renderable (because it has no actions) then the image is not added the HTML element. - the buttons in the pdf in bug 1737260 or in the pdf in mozilla#14308 were not visible - make the button always renderable but don't add the link element if it's useless.