DEV Community

Arjunan95
Arjunan95

Posted on

React-carousel pdf.

How to generate a carousel image to pdf.curently I am using the "KendoReact" pdf , So it is not working. Please, anyone, tell me the solution.

Top comments (2)

Collapse
 
dance2die profile image
Sung M. Kim

Hi @arjunan95.

Without any code snippets or contexts, it's hard to help.

What have you tried and what's the error?

Collapse
 
arjunan95 profile image
Arjunan95 • Edited

Thanks for the reply,

Here I have given the basic examples.

code

outside render
//function name
onBtPrint() {
setTimeout(function () {
this.print()
window.location.reload()
}, 400);
}
inside render return


this.onBtPrint()}>Take pdf

Card 1
Card 1
Card 2
Card 3
Card 4

key points:
card1,card2,card3,card4 are caurosel

so, If I click the take pdf the entire carousel card required.

please suggest which one is the best one to take pdf in react.