The goal is to generate a pdf file off a component, and send it to a backend api that would then send it to an email as an attached file.
Looking at these two links...