You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
I am using react-pdf to render a password-protected PDF. While the main content is displayed correctly after providing the correct password, the form fields within the PDF document are not being rendered. These fields appear blank or are missing entirely, even though the rest of the document loads without issues. I suspect this might be an issue with how react-pdf or pdf.js handles certain types of form fields or encryption.
Notice that the form fields within the document are missing or blank, while the rest of the content renders correctly.
Expected behavior
I expect the form fields (such as input fields, dropdowns, checkboxes, etc.) to be displayed and rendered correctly, just like the other text and images in the document. These fields should not be blank or missing.
Actual behavior
Notice that the form fields within the document are missing or blank, while the rest of the content renders correctly
Before you start - checklist
Description
I am using react-pdf to render a password-protected PDF. While the main content is displayed correctly after providing the correct password, the form fields within the PDF document are not being rendered. These fields appear blank or are missing entirely, even though the rest of the document loads without issues. I suspect this might be an issue with how react-pdf or pdf.js handles certain types of form fields or encryption.
Steps to reproduce
This is PDF file url: https://s3-hnapuhdd-cdn.didistatic.com/freight-h5/freight-h5/operation/cwwazbfn3Fj2.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKDD00000000000ISN17K4STMXMZJJ%2F20241013%2Fhnapuhdd%2Fs3%2Faws4_request&X-Amz-Date=20241013T172442Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=1bf7091481c0c741d9b41c1cc828962b1db3df076dd1bc5d4669726b47cc4151
Use the following code snippet to render the PDF in react-pdf:
https://code.meideng.dev/1728840893678955
Render the component in your application.
Notice that the form fields within the document are missing or blank, while the rest of the content renders correctly.
Expected behavior
I expect the form fields (such as input fields, dropdowns, checkboxes, etc.) to be displayed and rendered correctly, just like the other text and images in the document. These fields should not be blank or missing.
Actual behavior
Notice that the form fields within the document are missing or blank, while the rest of the content renders correctly
Additional information
This is an example pdf file.
天际LTWA35K16MS210008.pdf
Environment
The text was updated successfully, but these errors were encountered: