diegomura / diegomura/react-pdf

PDF not openable when using "Download PDFs" settings for PDF documents in Chrome

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

Description

**Describe the bug**
PDF not openable when using "Download PDFs" settings for PDF documents in Chrome - the Open button's link (blob:...) is invalid and points not to the blob but to the iframe's own URL.

**To Reproduce**
Steps to reproduce the behavior including code snippet (if applies):
1. Go to 'chrome://settings/content/pdfDocuments?search=pdf'
2. Set behaviour to "Download PDFs':
image
3. Open the page with PDFViewer
image
4. Click on Open
5. Boom
image

**Expected behavior**
Should either download the document or open it.

**Desktop (please complete the following information):**
- OS: MacOS Ventura
- Browser: Chrome
- React-pdf version "@react-pdf/renderer": "^3.1.3"

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.