React renderer for creating PDF files on the browser and server
Questions tagged [react-pdf]
409 questions
0
votes
2 answers
Generating a table of content USING using react-pdf
Please i am try to generate a pdf document since some weeks and have finsh but something missing in the table. i want to give the ability to user to see table of content with his page number. can Somebody help me. Thanks

RuthelCrab
- 153
- 10
0
votes
0 answers
How to import react-pdf-table into react-pdf
I am referring to this version of react-pdf, not the other one.
When I run the following commands:
git clone https://github.com/diegomura/react-pdf.git
cd react-pdf
npm install "@david.kucsai/react-pdf-table"
Then add a Table component to the…

James Shapiro
- 4,805
- 3
- 31
- 46
0
votes
0 answers
Create list of images from a PDF blob using react-pdf and pdfjs
I am using react-pdf to generate a PDF on the client-side. It works great.
However, on mobile, the PDFViewer components doesn't work.
So, I have a 7-page PDF I need some way to "preview"/display on mobile.
My near-term solution is to convert the…

A.com
- 1,466
- 4
- 19
- 31
0
votes
1 answer
React jsx class is showing the data twice after adding the render pdf session
I have rendered data from database and displayed in the page I created.( It showed all the data correctly once)
Then I added generate as pdf session under that class and it is successfully giving the data as pdf. But in the page the data is showing…

Deepika
- 737
- 7
- 23
0
votes
0 answers
I can load an image from S3 through an image tag, but not a fetch request?
I am trying to load an image from s3 onto a pdf, using a library called react-pdf. This is the same image I display on my site, and that works just fine when using the url on the src of an image element. However, it fails when loading from the…

Brandon Thaler
- 11
- 2
0
votes
1 answer
How to save pdf in react created using react-pdf library?
I am creating a React application in which I have to generate a pdf and save that pdf when clicking a button.
How can I save this pdf in my local directory ?
CreatePdf.js
import React, { Component } from 'react';
import { Document, Page, Text, View,…

Ashish Mysterio
- 177
- 1
- 5
- 13
0
votes
0 answers
How to generate a PDF from my react app and JSX designs
I want to create a cv maker that takes people's info and makes a pdf out of it but I have not worked with PDFs before. I have been searching the internet and I don't know where to start. I get packages like jspdf, react-pdf and some others, some of…

Ibrahim
- 67
- 1
- 9
0
votes
1 answer
How can i add user features(name, department etc.) into my const variable in react?
I want to make a pdf from my user information page . I use react-pdf but i do not find information about using props from my document variable in react-pdf webpage. Is that possible to use it or how can i do without use any prop?
const MyDoc = () =>…

Doctor starter
- 35
- 2
- 9
0
votes
1 answer
Trying Electron-React Boiler Plate Use @react-pdf/renderer to display PDF Component with PDFViewer Setup
Has anyone set up electron to pass the PDFViewer component that is then displayed to the DOM from React? I am able to display an empty box because the blob file and html aren't passed to the DOM like it does in a simple React app. The blob file is…
0
votes
1 answer
How to create objects dynamically
Im working with a library to create tables in react-pdf. And i want to fill it with api data. Is there a way of iterating inside the data{} and create various objects with data from api. Instead of sth like
data={[{firstName: "John", lastName:…

Rowan Frank
- 117
- 6
0
votes
1 answer
React-pdf frame proportions
I want to use react-pdf to generate PDF and just followed the exact same steps provided by its official documentation. However when the pdf renders it doesnt occupy the whole screen, and i dont know if im doing sth wrong or there's some property to…

Rowan Frank
- 117
- 6
0
votes
1 answer
How can I convert a Uint8array for react-pdf to display as PDF in React
I currently have a PDF file that I'm getting from an Amazon s3 bucket logging out data like below in the console.
Uint8Array(83284) [37, 80, 68, 70, 45, 49, 46, 53, 10, 37, 191, 247, 162, 254, 10, 49, 48, 32, 48, 32, 111, 98, 106, 10, 60, 60, 32,…

Adebola
- 549
- 1
- 7
- 11
0
votes
1 answer
Creating PDF out of custom components in React
Requirement:
I have to export a dashboard into PDF, this dashboard contains multiple tabs. Each tab has data that is dynamically fetched only once the tab is clicked on. Requirement is that all the tabs data should get exported into a pdf having…

Arun E.R
- 21
- 1
- 8
0
votes
1 answer
Unable to download PDF using react-pdf and react-js
I've been breaking my head for past few hours fixing react-pdf package related issue. I have tried various examples available online. But I am facing the same error message.
Error: Element type is invalid: expected a string (for built-in components)…

Dovah
- 30
- 6
0
votes
1 answer
ZoomIn/ZoomOut buttons doesn't work with react-pdf
I tried to code zoom in and zoom out buttons for my pdf viewer but it doesn't work. In each function I increase or reduce the initial scale, but nothing happens. My function is however well called at the click. Someone to help me or tell me what I…

Amélie
- 17
- 7