Really great start point for dealing with PDF in Rails applications.
One thing that might help is using
aws to store to pdf, that way we can have an historical, and a place where users can download, all the PDF the need.
sidekiq for the generation purpose, to release the request time while generating the PDF.
But again great resource.