How to download web pages as PDF in React JS

How to download web pages as PDF in React JS

Code Pro

1 год назад

27,810 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

kleatech
kleatech - 21.10.2023 14:58

please can you share the github link or the blog link

Ответить
Show How
Show How - 16.10.2023 16:01

Great tutorial, simple and to the point. One major issue though. When the content is longer than the viewport or wider and or even when the you have the window resize to smaller one then the it will not convert the full content. Does anyone have an idea about solving this issue?

Ответить
Amilieo
Amilieo - 09.10.2023 07:10

Awesome loved it ❤

Ответить
Varad Tote
Varad Tote - 07.10.2023 15:00

I got it right but image quality is too bad

Ответить
Prakash A
Prakash A - 22.09.2023 11:17

how to take print long web page ? more than 1 page

Ответить
James Yang
James Yang - 18.09.2023 02:18

Hi bro, thank you so much, i just have a little problem when i download the PDF my images dont render in it

Ответить
Sam Green
Sam Green - 10.09.2023 11:58

I love simple short tutorials that work. Thank you for this. Worked first time without any issues.

Ответить
Sunidhi Chouhan
Sunidhi Chouhan - 02.09.2023 09:05

how can we make text selectable in pdf
? please help me oue.

Ответить
Abdul Ragib
Abdul Ragib - 23.08.2023 19:38

i follow same approach but it didn't work

Ответить
ABHISHEK MEENA
ABHISHEK MEENA - 17.08.2023 14:01

thank you, it was helpful

Ответить
Vinay Pratap Singh
Vinay Pratap Singh - 10.08.2023 15:21

One more major problem will be that if I had a table of data which is horizontally scrollable then it will only capture the visible screen not the hidden part which is scrollable.
So if someone has the solution for it please let me know

Ответить
Stan Beats
Stan Beats - 02.08.2023 07:07

thx

Ответить
Rodrigo Castro
Rodrigo Castro - 28.07.2023 19:56

This is not the correct approach. This is only converting the web into an image, and then paste it on a pdf. Consequently: final pdf has no text you can select and/or copy, it is just an image; and second, if you have several pages this method does not work. Does anyone has a correct solution? Please leave it bellow 🙏🏻

Ответить
Billy Joshua Salcedo
Billy Joshua Salcedo - 20.06.2023 07:05

how can you optimize the downloading time? I'm having trouble into downloading the pdf because it takes around 5 seconds before downloading the pdf. I'm using useRef for the DivElement and is passing down the scale to 1 to lower the graphics but to no avail.

Ответить
Billy Joshua Salcedo
Billy Joshua Salcedo - 20.06.2023 07:05

how can you optimize the downloading time? I'm having trouble into downloading the pdf because it takes around 5 seconds before downloading the pdf. I'm using useRef for the DivElement and is passing down the scale to 1 to lower the graphics but to no avail.

Ответить
Denis Kononov
Denis Kononov - 29.05.2023 13:35

Great guide, everything worked from the first try, thank you

Ответить
kanibis
kanibis - 05.05.2023 08:30

thank you @code pro, that's what I needed. I wanted to know about the step guide that you created - have you used animation for rendering the steps one-by-one? Please do reply, I'm in the learning phase and it'd really help me. Also can you please share step-guide's github link?

Ответить
Anik CM
Anik CM - 04.05.2023 01:14

informative

Ответить
Rukaiya Jahan
Rukaiya Jahan - 03.05.2023 09:35

Thank you so much. such a helpful video . Go ahead, all the best

Ответить