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

Deprecated API usage for the renderInteractiveForms-option when using pdfjs.GlobalWorkerOptions.workerSrc #946

Closed
4 tasks done
spirosikmd opened this issue Feb 9, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@spirosikmd
Copy link

Before you start - checklist

  • I followed instructions in documentation written for my React-PDF version
  • I have checked if this bug is not already reported
  • I have checked if an issue is not listed in Known issues
  • If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo

Description

When I use the worker version to render the PDF, according to the documentation, we see a deprecation warning in the browser console. Not 100% sure, but the warning doesn't show if I don't use the workerSrc part.

Steps to reproduce

  1. Go to https://codesandbox.io/s/vigorous-hermann-mzwvo?file=/src/App.js
  2. Open the console
  3. See the warning

Expected behavior

I don't expect to see a warning!

Actual behavior

Deprecation warning shows in the console

Deprecated API usage: render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead.

Additional information

No response

Environment

  • Browser (if applicable): Safari Version 15.3
  • React-PDF version: 5.7.0
  • React version: 17.0.2
  • Webpack version (if applicable): 4.44.2 (coming from react-scripts)
@spirosikmd spirosikmd added the bug Something isn't working label Feb 9, 2022
@wojtekmaj
Copy link
Owner

Already fixed in 454330a, but thanks for your time!

@spirosikmd
Copy link
Author

Great, thank you @wojtekmaj for your reply!

@wojtekmaj
Copy link
Owner

Just released in v5.7.1 btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants