[Html2PdfConverter] How to generate PDF for secure and user authenticated pages?

Forge Component
Published on 2018-10-30 by Guilherme Pereira
58 votes
Published on 2018-10-30 by Guilherme Pereira

How to generate PDF for secure and user authenticated pages

I have a multi tenant application, and also respective users for the same.

I want to generate PDF using HTML2PDF for one of the page, which requires login.

But I am not able to generate a PDF, its showing PDF generated for the Login Screen.

Please suggest solutions for the same.

Maybe you can try using tokens...

Unfortunately the html2pdf does not support authenticated pages. So you need to use tokens to keep this more secure. 

This component on forge was created to exemplify the use of tokens and it combine html2pdf and simplereports.


Best regards