Skip to content

Warning: getHexString - ignoring invalid character. Failed to load PDF file #1026

@eugenestepaniuk

Description

@eugenestepaniuk

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 downloading a pdf file, it appears warnings in console and Failed to load PDF file
image

https://codesandbox.io/s/react-pdf-example-6ikmdn?file=/pages/index.tsx

Steps to reproduce

  1. Click Link 'Groups'
  2. Select any item
  3. On item page Failed to load PDF file

Expected behavior

Correct loading PDF File

Actual behavior

Failed to load PDF file
image

Additional information

No response

Environment

  • Browser (if applicable): Chrome 103.0.5060.53
  • React-PDF version: 5.7.2
  • React version: 18.1.0
  • Webpack version (if applicable):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions