I am generating a pdf file and am trying to preview it using stream() as well as attach it to an email.
stream()
When I try to stream() the pdf using the