Skip to content

Support Optional Content in Image-/XObjects (issue 13931) #13932

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 3 commits into from
Aug 30, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

  • Support Optional Content in Image-/XObjects (issue 13931)

    Currently, in the PartialEvaluator, we only support Optional Content in Form-/XObjects. Hence this patch adds support for Image-/XObjects as well, which looks like a simple oversight in PR Add support for optional marked content. #12095 since the canvas-implementation already contains the necessary code to support this.

  • Add support for specifying non-default Optional Content in the ref-tests

Fixes #13931

@Snuffleupagus
Copy link
Collaborator Author

/botio test

@timvandermeij
Copy link
Contributor

@brendandahl Could you perhaps review this one since it's a follow-up to your initial patch?

Currently, in the `PartialEvaluator`, we only support Optional Content in Form-/XObjects. Hence this patch adds support for Image-/XObjects as well, which looks like a simple oversight in PR 12095 since the canvas-implementation already contains the necessary code to support this.
…XObjects, are balanced in corrupt documents (PR 13854 follow-up)

Something that I *just* realized is that while PR 13854 fixed an issue as reported, it could still cause bugs in other similarily broken documents since we'll not insert a matching endMarkedContent-operator in the operatorList.
@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.67.70.0:8877/f8e0fe45a5af3cf/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

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

@mozilla mozilla deleted a comment from pdfjsbot Aug 26, 2021
@mozilla mozilla deleted a comment from pdfjsbot Aug 26, 2021
@mozilla mozilla deleted a comment from pdfjsbot Aug 26, 2021
@mozilla mozilla deleted a comment from pdfjsbot Aug 26, 2021
@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

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

Total script time: 33.72 mins

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

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

Total script time: 40.94 mins

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

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

@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/32c03410cc0c056/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/32c03410cc0c056/output.txt

Total script time: 4.92 mins

Published

@brendandahl
Copy link
Contributor

Nice, thanks for the tests too!

@brendandahl brendandahl merged commit 306119b into mozilla:master Aug 30, 2021
@brendandahl
Copy link
Contributor

/botio makeref

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://3.101.106.178:8877/08a08821f5cea57/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

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

Total script time: 30.89 mins

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://3.101.106.178:8877/08a08821f5cea57/output.txt

Total script time: 28.81 mins

  • Lint: Passed
  • Make references: FAILED

@Snuffleupagus
Copy link
Collaborator Author

/botio-windows makeref

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://3.101.106.178:8877/93a89fe574d2b16/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://3.101.106.178:8877/93a89fe574d2b16/output.txt

Total script time: 37.69 mins

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

@Snuffleupagus Snuffleupagus deleted the oc-images branch August 30, 2021 18:34
@timvandermeij timvandermeij removed the request for review from brendandahl September 1, 2021 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't hide XObject based layer
4 participants