gmmcal/gmmcal.com.br

Move away from downloading CV as PDF to generate it on the fly

Closed this issue · 0 comments

Is your feature request related to a problem? Please describe.
Currently, the Download CV feature relies on getting a file from S3. This is fine, but creates an extra step when I need to change some information on the website. Currently, I have to change this information on CMS in both languages, CV version in both languages, and then export files and update them in CMS as well.

Describe the solution you'd like
Since all information provided on downloaded CV is the same as provided on website, I want to generate the CV by exporting the PDF file from CMS content and export to PDF using a HTML-to-PDF generator. This reduces the dependencies on ActiveStorage, Amazon S3 (for production), reduce load on tests and make it easier to improve UI on website and CV. It is also easy to track changes on CV over time.