Skip to content

Annotation-data exceptions during e.g. printing #14889

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

Closed
Snuffleupagus opened this issue May 8, 2022 · 0 comments · Fixed by #14890
Closed

Annotation-data exceptions during e.g. printing #14889

Snuffleupagus opened this issue May 8, 2022 · 0 comments · Fixed by #14890
Assignees

Comments

@Snuffleupagus
Copy link
Collaborator

Attach (recommended) or Link to PDF file here: 160F-2019.pdf from the test-suite.

Configuration:

Steps to reproduce the problem:

  1. Open the document
  2. Click on the "Réinitialiser"-button, in the document
  3. Trigger printing

What is the expected behavior? (add screenshot)
Printing works correctly.

What went wrong? (add screenshot)
Printing ignores any annotation-data, with the following console output:

Warning: getOperatorList - ignoring annotation data during "GetOperatorList: page 0" task: "TypeError: value.trim is not a function". [pdf.worker.js:1111:13](https://mozilla.github.io/pdf.js/build/pdf.worker.js)
Warning: addOpList - ignoring invalid "opList" parameter.

The error originates at line

value = value.trim();
and is (as far as I can tell) caused by the formattedValue no longer being a string.

/cc @calixteman

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

Successfully merging a pull request may close this issue.

2 participants