0

I have a react component that is contained in a tab. How Can I generate a PDF doc from that specific react component (JSX) when clicking a button ?

Juan Salvador
  • 407
  • 9
  • 15
  • 1
    What have you tried? What issues are you having? You say 'in a tab', what do you mean? Can you show us a skeletal code example of what you want converted to PDF? We need more info mate – Jayce444 Jul 21 '17 at 02:11

1 Answers1

1

Have a look at pdfmake and the first answer here, which, while relating to AngularJS, gives you an idea of how to use flat JS to generate a PDF from a webpage. You'll be creating the PDF from the actual generated DOM content, rather than JSX.

Kai
  • 2,529
  • 1
  • 15
  • 24