Questions tagged [react-pdfrenderer]
38 questions
7
votes
3 answers
react-pdf in nextjs is not letting to make build
I am using react-pdf and react-pdf/renderer in nextjs after creating the file and adding the code it works perfectly but when I make the production build it continues to make the build and never stops.
here is the code
import React from…

Noman
- 594
- 1
- 18
2
votes
0 answers
react-pdf image rendering with images stored in firebase storage
I've looked at as many posts as I could here and on GitHub, and none seemed to have a real solution. I am trying to render a pdf document using react-pdf that gets all the data it needs passed in by an object called model. In this case its a bunch…

JasonK97
- 23
- 5
2
votes
2 answers
How to break a page conditionally with react-pdf/renderer
I am trying to add a page break conditionally once my Section title is not on the first page, i.e., page breaks should begin after the second page. How do I add this condition to my View tag for the "Section Title" to my code below where there is…

myverdict
- 622
- 8
- 24
2
votes
1 answer
React-pdf Missing class properties transform
I'm trying to display a pdf file on a web page with React.
The problem I have is that after installing react-pdf and importing import { DOCUMENT } from 'react-pdf' the project doesn't compile, showing the following…

Marco Espinoza
- 31
- 4
2
votes
1 answer
@react-pdf/renderer 3.0.0 TypeError: ctx.embedImage is not a function
Here is a snippet of my code...
I was trying to load the image from the public directory.
But it gives me this error.

mrllevado
- 21
- 3
1
vote
0 answers
React-pdf/renderer SVG text not rendering correctly
I have a nodejs lambda function running on AWS that should generate a PDF for download. It has taken some time to get all of these parts working, it's very disappointing that i am unable to fix the text in the SVG output correctly.
I am using Vega…

WebSight
- 640
- 2
- 12
- 27
1
vote
0 answers
React-pdf height, width, border and scroll styling
I'm having problems styling the PDFViewer component correctly.
I'd like it to look like this: react-pdf example
(example using react-pdf out of the box from the package documentation)
I'm using react-pdf/renderer
My code looks like this:

two-touch
- 11
- 2
1
vote
1 answer