Creating PDF with Snappy-Laravel

So snappy does an amazing job of generating PDFs for my Laravel site. The problem is the login. Snappy can PDF all pages before login, but if I try to print the url of a page that only appears after login, then it is a PDF login page. It must be session related or Auth function. Does anyone know how PDF pages require authorization with Snappy?

+3


source to share


1 answer


Don't know much about pdf authentication pass. But I suggest there is a separate page that will display all your required data and generate a PDF.

Example: Suppose you want to create a PDF file with a detailed description of the user profile.



First you need to have a regular page that will ask for authentication, after authentication and details are done, and then the resulting information is sent to the PDF generation page that displays the data.

+1


source







All Articles