diegomura / diegomura/react-pdf

PdfViewer remains blank / downloads pdf in background (Firefox)

Open
#1,310 6 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
16.8k
Forks
1.3k
Avg merge
5h 6m
Merged PRs (30d)
52

Description

**Describe the bug**

When we are trying to display our pdf document using the `` component, it just shows a blank iframe but downloads the pdf in the background without a pdf extension, just named `pdf`.

**To Reproduce**
Steps to reproduce the behavior including code snippet (if applies):

There aren't any weird steps we are taking, we aren't doing anything exotic per se.

This is how we render our document:

```
return (










);
```

**Expected behavior**
That PdfViewer shows the PDF instead of download it in the background.

**Desktop (please complete the following information):**
- OS: MacOS
- Browser Firefox v88
- React-pdf version 2.0.8

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.