Skip to content

Support cmaps with only CID characters, when building the ToUnicode-map (issue 9367) #14041

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

Merged
merged 2 commits into from
Sep 18, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

In this particular case the CMap-data that we create contains only numbers, but no strings, which causes PartialEvaluator.readToUnicode to create a ToUnicode-map with only empty strings.

Please note: This is yet another case where I don't know if it's necessarily the best and most correct solution, but it does fix the referenced issue.

Fixes #9367

…ap (issue 9367)

In this particular case the `CMap`-data that we create contains only numbers, but no strings, which causes `PartialEvaluator.readToUnicode` to create a ToUnicode-map with only empty strings.

*Please note:* This is yet another case where I don't know if it's necessarily the best and most correct solution, but it does fix the referenced issue.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/4ca4cd3757d15af/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/09a9b245fa4ca65/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/4ca4cd3757d15af/output.txt

Total script time: 20.16 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  errors: 598
  different ref/snapshot: 5
  different first/second rendering: 2

Image differences available at: http://54.241.84.105:8877/4ca4cd3757d15af/reftest-analyzer.html#web=eq.log

@Snuffleupagus
Copy link
Collaborator Author

/botio-linux browsertest

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_browsertest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/93f3c215614c452/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/09a9b245fa4ca65/output.txt

Total script time: 40.03 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: FAILED
  different ref/snapshot: 101
  different first/second rendering: 1

Image differences available at: http://54.193.163.58:8877/09a9b245fa4ca65/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/93f3c215614c452/output.txt

Total script time: 19.01 mins

  • Regression tests: FAILED
  different ref/snapshot: 7
  different first/second rendering: 1

Image differences available at: http://54.241.84.105:8877/93f3c215614c452/reftest-analyzer.html#web=eq.log

…ndard fonts, into a helper function

This reduces some unnecessary duplication, since we currently have essentially the same code in a handful of places in the `Font.fallbackToSystemFont`-method.
@Snuffleupagus
Copy link
Collaborator Author

/botio browsertest

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_browsertest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/a1ab01b187cae96/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_browsertest from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.193.163.58:8877/a5fef835af00ee2/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/a1ab01b187cae96/output.txt

Total script time: 17.42 mins

  • Regression tests: FAILED
  errors: 598
  different ref/snapshot: 6

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/a5fef835af00ee2/output.txt

Total script time: 35.86 mins

  • Regression tests: FAILED
  different ref/snapshot: 104
  different first/second rendering: 1

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

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/f5e3d11d7bdba75/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/f5e3d11d7bdba75/output.txt

Total script time: 4.13 mins

Published

@timvandermeij timvandermeij merged commit 83d3bb4 into mozilla:master Sep 18, 2021
@timvandermeij
Copy link
Contributor

Looks good to me; thank you!

/botio makeref

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/f58fedf6f3d7721/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/d11cdbe684e7afe/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/f58fedf6f3d7721/output.txt

Total script time: 17.94 mins

  • Lint: Passed
  • Make references: FAILED

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/d11cdbe684e7afe/output.txt

Total script time: 37.01 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.

pdf rendered completely wrong
3 participants