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

Fix errors in setGState in PartialEvaluator_getTextContent that prevents text-selection from working properly #7374

Merged
merged 1 commit into from
Jun 3, 2016
Merged

Conversation

Snuffleupagus
Copy link
Collaborator

Currently setGState is completely broken, and looking through the history of that code, it seems to me that this may never have worked correctly.
This patch fixes the text-selection in extgstate.pdf in the test-suite, which is also added as a text test.

@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Jun 1, 2016

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/0b8846f7093204f/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 1, 2016

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/6c53b0cc93ba04d/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 1, 2016

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/0b8846f7093204f/output.txt

Total script time: 21.17 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Jun 1, 2016

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/6c53b0cc93ba04d/output.txt

Total script time: 27.76 mins

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

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Jun 1, 2016

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/47f24e3f2ba0b27/output.txt

@timvandermeij
Copy link
Contributor

I can confirm that this fixes the issue for extgstate.pdf. The code makes more sense too. Really nice work!

@yurydelendik Could you review this one?

…revents text-selection from working properly

Currently `setGState` is completely broken, and looking through the history of that code, it seems to me that this may never have worked correctly.
This patch fixes the text-selection in `extgstate.pdf` in the test-suite, which is also added as a `text` test.
@Snuffleupagus
Copy link
Collaborator Author

Snuffleupagus commented Jun 1, 2016

Now with one less stupid typo in the modified handleSetFont call in OPS.setFont.

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Jun 1, 2016

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/b425e655d81df08/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 1, 2016

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/6d3d5f3a5f41ce8/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 1, 2016

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/9370d17d2578f4b/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 1, 2016

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/9a3405481770f98/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 1, 2016

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/b425e655d81df08/output.txt

Total script time: 21.32 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Jun 1, 2016

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/6d3d5f3a5f41ce8/output.txt

Total script time: 27.59 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Jun 1, 2016

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/9370d17d2578f4b/output.txt

Total script time: 21.06 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Jun 1, 2016

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/9a3405481770f98/output.txt

Total script time: 27.57 mins

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

@yurydelendik
Copy link
Contributor

Looks good. Thank you for the patch.

/botio makeref

@pdfjsbot
Copy link

pdfjsbot commented Jun 3, 2016

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/5e628c4167c1ff2/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 3, 2016

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/ffbbc0a29037fb3/output.txt

@yurydelendik yurydelendik merged commit 5a5bb99 into mozilla:master Jun 3, 2016
@pdfjsbot
Copy link

pdfjsbot commented Jun 3, 2016

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/ffbbc0a29037fb3/output.txt

Total script time: 21.32 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Jun 3, 2016

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/5e628c4167c1ff2/output.txt

Total script time: 26.76 mins

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

@Snuffleupagus Snuffleupagus deleted the fix-getTextContent-setGState branch June 3, 2016 17:26
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.

4 participants