I am trying to convert html to PDF using Rotativa, but I want to save it as an array of bytes or a stream so that I can easily attach it to mail or something else. I found a solution here , but the file cannot be opened by any PDF reader, because it is not a supported format or the file is damaged.
Here is another solution from the same thread, but I canβt understand what parameters need to be passed to this function, and I could not find any documentation for Rotativa online.
source share