Sunday, March 5, 2017

Save view as png laravel

I'm having a nightmare with this. I've currently got an application which allows a user to view information by grabbing data from an API. I want to programatically save the view the user sees as a png image.

I've tried using Snappy etc but the pdf output isn't great and I want to save the view as a png. I tried using phantomjs but the problem is that the view needs the user to be logged in and so I just get the 'you need to be logged in screen'

Does anyone have advice on how to make a method in my controller to save an authenticated user's view as a png on load?

Thanks!



via roo

Advertisement