cyntler / cyntler/react-doc-viewer

Can't read PDF or DOCX from blob ?

Open
#134 18 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
481
Forks
147
PR merge metrics
No merged PRs in 30d

Description

Hi !

I'm trying to display DOCX or PDF from a blob file and it just won't load.

![Capture d’écran 2023-04-17 à 16 36 20](https://user-images.githubusercontent.com/61308794/232519582-dbecf1b5-1a05-4e60-858a-f57e80da57d8.png)

![Capture d’écran 2023-04-17 à 16 38 26](https://user-images.githubusercontent.com/61308794/232519734-fd8ac177-0dde-45ff-9148-52429904923c.png)

and here's the code

![Capture d’écran 2023-04-17 à 16 36 53](https://user-images.githubusercontent.com/61308794/232520748-bbd9cf41-c7d9-4342-98c0-9f94ef9cf0ec.png)

and the blob link

![Capture d’écran 2023-04-17 à 16 40 45](https://user-images.githubusercontent.com/61308794/232520501-3768ae9e-d338-4d28-8454-12ab805d5e6d.png)

It's strange cause for the PDF file, react-pdf is working fine, I just don't want to use multiple libraries and yours meets my need

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.