Skip to content
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

In a text widget, Font resources can be in the appearance #12394

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

calixteman
Copy link
Contributor

@calixteman calixteman commented Sep 19, 2020

In file https://github.com/mozilla/pdf.js/files/5249872/product1.pdf, the fifth text widget has a default appearance using font F1 and this one is neither in DR nor in AcroForm but in AP::N::Resources.

Fixes #12398.

@timvandermeij
Copy link
Contributor

Is there test coverage for this or should a test be added? The file itself is already included in https://github.com/mozilla/pdf.js/pull/12393/files, but do we need a print test here?

@calixteman
Copy link
Contributor Author

I can add a test.

@timvandermeij
Copy link
Contributor

Looks good to me with a reference test added. Most likely this can be done in the same way as in https://github.com/mozilla/pdf.js/pull/12361/files.

@timvandermeij
Copy link
Contributor

@calixteman If you have time, could you address the comments in this and the other PRs so we can get some of them merged?

test/test_manifest.json Show resolved Hide resolved
test/test_manifest.json Outdated Show resolved Hide resolved
src/core/annotation.js Outdated Show resolved Hide resolved
@timvandermeij
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2020

From: Bot.io (Linux m4)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/eaa5bcf5a3dc169/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2020

From: Bot.io (Windows)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://54.215.176.217:8877/a7078e0daadc28f/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2020

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/a7078e0daadc28f/output.txt

Total script time: 29.27 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.215.176.217:8877/a7078e0daadc28f/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2020

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/eaa5bcf5a3dc169/output.txt

Total script time: 60.00 mins

@timvandermeij
Copy link
Contributor

/botio-linux test

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2020

From: Bot.io (Linux m4)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/8cfc0d9c27a2e41/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2020

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/8cfc0d9c27a2e41/output.txt

Total script time: 27.15 mins

  • Font tests: Passed
  • Unit tests: FAILED
  • Regression tests: FAILED

Image differences available at: http://54.67.70.0:8877/8cfc0d9c27a2e41/reftest-analyzer.html#web=eq.log

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Oct 3, 2020

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/7925fa282cf52d6/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 3, 2020

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/7925fa282cf52d6/output.txt

Total script time: 3.53 mins

Published

@timvandermeij
Copy link
Contributor

Opening the issue12392.pdf file in the preview above or locally with this code checked out, it doesn't print anything I enter in the fields anymore for me while this works with https://mozilla.github.io/pdf.js/web/viewer.html. Could you check why this happens?

@calixteman
Copy link
Contributor Author

In order to see the "effect" of this patch on file issue12392.pdf, it's required to have #12292 before.

@timvandermeij
Copy link
Contributor

Could you rebase this one now that #12292 is merged so we can also look into landing this one?

@calixteman
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Jan 8, 2021

From: Bot.io (Windows)


Received

Command cmd_test from @calixteman received. Current queue size: 0

Live output at: http://3.101.106.178:8877/f41ec1825ca802d/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jan 8, 2021

From: Bot.io (Linux m4)


Received

Command cmd_test from @calixteman received. Current queue size: 0

Live output at: http://54.67.70.0:8877/8fb2522fd1c7bac/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jan 8, 2021

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/8fb2522fd1c7bac/output.txt

Total script time: 26.15 mins

  • Font tests: Passed
  • Unit tests: FAILED
  • Integration Tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.67.70.0:8877/8fb2522fd1c7bac/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Jan 8, 2021

From: Bot.io (Windows)


Failed

Full output at http://3.101.106.178:8877/f41ec1825ca802d/output.txt

Total script time: 27.91 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED

Image differences available at: http://3.101.106.178:8877/f41ec1825ca802d/reftest-analyzer.html#web=eq.log

@calixteman
Copy link
Contributor Author

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Jan 8, 2021

From: Bot.io (Linux m4)


Received

Command cmd_preview from @calixteman received. Current queue size: 0

Live output at: http://54.67.70.0:8877/2b246a0196b352d/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jan 8, 2021

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/2b246a0196b352d/output.txt

Total script time: 4.05 mins

Published

@timvandermeij timvandermeij merged commit c0a6d6c into mozilla:master Jan 8, 2021
@timvandermeij
Copy link
Contributor

Thank you for fixing this!

/botio makeref

@pdfjsbot
Copy link

pdfjsbot commented Jan 8, 2021

From: Bot.io (Linux m4)


Received

Command cmd_makeref from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/c35a407fe19cfe8/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jan 8, 2021

From: Bot.io (Windows)


Received

Command cmd_makeref from @timvandermeij received. Current queue size: 1

Live output at: http://3.101.106.178:8877/2fba89365b6e5a7/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jan 8, 2021

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/c35a407fe19cfe8/output.txt

Total script time: 24.76 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@pdfjsbot
Copy link

pdfjsbot commented Jan 8, 2021

From: Bot.io (Windows)


Success

Full output at http://3.101.106.178:8877/2fba89365b6e5a7/output.txt

Total script time: 26.33 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Font resources for a text widget can be in appearance
5 participants