-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
XFA - Set storage values to select and option elements #16714
Conversation
I've tagged Calixte for review, however a couple of quick observations:
|
Do you have an example of pdf which demonstrates the issue you're trying to fix ? |
@Snuffleupagus Thanks for the suggestions. @calixteman This is the pdf i'm using: xfa_invoice_example.pdf |
I found this issue when i wanted implement the XFA forms in a web application, so i used the npm package |
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.
LGTM. Thank you.
/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/c9e32b0b860ba03/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/b5e590508e58de8/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/b5e590508e58de8/output.txt Total script time: 25.25 mins
Image differences available at: http://54.241.84.105:8877/b5e590508e58de8/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.
Please see https://github.com/mozilla/pdf.js/wiki/Squashing-Commits and please also improve the commit message as was mentioned previously.
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/c9e32b0b860ba03/output.txt Total script time: 39.15 mins
Image differences available at: http://54.193.163.58:8877/c9e32b0b860ba03/reftest-analyzer.html#web=eq.log |
07c16d0
to
8a4cf2e
Compare
@Snuffleupagus Done! |
Sorry, but I think that the commit message should mention XFA (as the PR title does) since that's not really clear unless you actually look at the code. (You'd probably guess that it's related to the regular annotationLayer otherwise.) Please keep in mind that it's very helpful with good/clear commit messages when using the git command-line, such as e.g. during bisecting and other operations. |
8a4cf2e
to
51270bc
Compare
…a and removes the 'selected' attribute from option element if it's not actually selected.
51270bc
to
18619ce
Compare
@Snuffleupagus Fixed.
I got it, sorry if i'm kind of newbie using git, all of this are new experiences for me 😅 |
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.
Thanks!
With XFA Forms, select fields always render with default attributes values and doesn't change if storage has different values, this PR intent to fix that by updating element attributes with storage values if exists and removing the 'selected' attribute (if exists) if the option actually isn't selected.