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

[Editor] Add the possibility to change line opacity in Ink editor #15219

Merged
merged 1 commit into from Jul 27, 2022

Conversation

calixteman
Copy link
Contributor

No description provided.

@calixteman calixteman added this to In progress in PDF.js editing via automation Jul 24, 2022
Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me, with the comments addressed; thank you!

const resources = new Dict(xref);
const extGState = new Dict(xref);
const r0 = new Dict(xref);
r0.set("AIS", false);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this property actually necessary here?

The reason that I ask is that in the PDF.js library we don't actually support that property, and there's even an old issue related to it (see #6967). Hence it seems slightly strange, at least to me, that we're generating data that we're actually not able to parse/use ourselves.

Comment on lines 67 to 70
FREETEXT_OPACITY: 2,
INK_COLOR: 3,
INK_THICKNESS: 4,
INK_OPACITY: 5,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that editing still is in development, and not officially released, this isn't an issue now; however it may become one in the future.

To avoid issues, let's group them like this instead to leave room for future additions without requiring backwards-incompatible changes. (Here I'm assuming that 10 parameters for each Annotation-type is plenty.)

Suggested change
FREETEXT_OPACITY: 2,
INK_COLOR: 3,
INK_THICKNESS: 4,
INK_OPACITY: 5,
FREETEXT_SIZE: 1,
FREETEXT_COLOR: 2,
FREETEXT_OPACITY: 3,
INK_COLOR: 11,
INK_THICKNESS: 12,
INK_OPACITY: 13,

@calixteman
Copy link
Contributor Author

/botio integrationtest

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/0befa990a994e2c/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

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

Total script time: 4.65 mins

  • Integration Tests: FAILED

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/0befa990a994e2c/output.txt

Total script time: 6.75 mins

  • Integration Tests: FAILED

@calixteman
Copy link
Contributor Author

/botio-linux integrationtest

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/299b070ac5d6ba2/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/299b070ac5d6ba2/output.txt

Total script time: 4.60 mins

  • Integration Tests: Passed

@calixteman
Copy link
Contributor Author

/botio integrationtest

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/00f799e29db431f/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/558020e583fc06e/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/00f799e29db431f/output.txt

Total script time: 5.00 mins

  • Integration Tests: FAILED

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/558020e583fc06e/output.txt

Total script time: 7.38 mins

  • Integration Tests: FAILED

@calixteman
Copy link
Contributor Author

/botio integrationtest

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @calixteman received. Current queue size: 1

Live output at: http://54.193.163.58:8877/20137b9708ac38c/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

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

Total script time: 4.73 mins

  • Integration Tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/20137b9708ac38c/output.txt

Total script time: 7.04 mins

  • Integration Tests: FAILED

@calixteman calixteman merged commit 89d1892 into mozilla:master Jul 27, 2022
PDF.js editing automation moved this from In progress to Done Jul 27, 2022
@calixteman calixteman deleted the editor_opacity branch July 27, 2022 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants