Questions tagged [react-pdf-viewer]
27 questions
0
votes
0 answers
Module build failed with syntax error at `(props: RenderNextPage = () => )
I am working with react pdf viewer package and webpack. When running the build i get a module builded failed with syntax error at (props: RenderNextPage = () => ). The problem is that props: is not allowing to build.
I have added @babel/preset-env…

spyavery
- 1
0
votes
0 answers
How to get real font names in react-pdf (pdfjs)?
In my web app developed with react, I'm using react-pdf to render the pdfs.
With this library, by specifying renderMode="svg" in the props, I get, in the html page, various svgs that represent the characters of my pdf.
The problem is that by…

Teo7
- 47
- 5
0
votes
0 answers
How to create a react pdf viewer with multiple langauge support
I have tried creating a react pdf viewer using react-pdf library , i want to integrate a functionality of changing language of the content of pdf according to drop down menu of language selection . Can anybody help ?
i have tried localisation :…

magician99
- 1
- 1
0
votes
0 answers
Enable Range Request in React-PDF-Viewer with Apache2
Apache2.conf
Header always set Expires "0"
Header always set Pragma "no-cache"
Header always set Cache-Control "no-cache, no-store, must-revalidate"
Header always set Access-Control-Allow-Methods "GET, POST,…

Aagam Sheth
- 685
- 7
- 15
0
votes
0 answers
Problem when I add font in react-pdf to customize i have module parse
When i add the font i have the problem module parse for the react pdf. I try to modify the theme of my pdf. I try to resolve the issue i can't .
When i add the font i have the problem module parse for the react pdf. I try to modify the theme of my…

sla
- 11
- 1
- 2
0
votes
1 answer
How to load pdf files from url using react-pdf-viewer or some other library with search button?
I am trying to load pdf from url using react-pdf-viewer library. I need a search button therefore I use this library. Is it possible to load pdf from url in this library? Or should I use any other library?
My current implementation is
const pdfFile…

Anthon Santhez
- 402
- 1
- 7
- 13
0
votes
2 answers
How do i open a local pdf file in the browser with the download option
I want to open a PDF file in the browser but instead of opening, it is downloading. I do not want to change the default settings of the browser.
If there any PDF viewer package which is easy to use, please refer.
I tried like this
first import the…

Rehan
- 1
- 2
0
votes
0 answers
Custom renderProgressBar cannot be displayed
The react-pdf-viewer can be provided with a custom print loading dialog. The Code below does not overwrite the default loading dialog. What is wrong?
export function myPDF({ ...props }): JSX.Element {
const renderProgressBar = React.useCallback(
…

vuvu
- 4,886
- 12
- 50
- 73
0
votes
1 answer
Issues passing initialPage value to react-pdf-viewer in modal
I'm using react-pdf-viewer to display articles I've written. I have a modal component named "PDFModal" that uses a portal to display the modal containing the PDF. The issue I'm having is that I need each pdf to open to the page where my article…

rmnrdi
- 65
- 8
0
votes
2 answers
import @react-pdf-viewer/core in meteor js 2.2 cause a problem
import {Worker ,Viewer} from @react-pdf-viewer/core;
enter image description here

MOSTFA Mari
- 1
- 2