I was really excited about using this gem instead of wicked_pdf or pdfkit, however I haven't been able to get the middleware to function correctly. I've added it to multiple rails projects including brand new ones but whenever I go to url/path.pdf it says "Preparing PDF..." and then after a few auto refreshes, "Sorry, request timed out..." even on very simple pages. Using the console command "Shrimp::Phantom.new(url).to_pdf!(target_path)" works fine and creates the pdf in just a second or two so it makes now sense that it's timing out. I've also tried increasing the timeout with no luck.
I looked through the closed issue regarding this but nothing in it solved my problem. #3
This seems like a really nice gem and I like that it's using phantomjs, I just really wish I could get it to work. Any help would be greatly appreciated. Thanks.