I have a 5-80 page PDF that is generated by my page. I have this PDF in a byte array, which I could temporarily save to file if need be.
I would prefer to not make the user download then print the PDF. Is there a fairly easy way to allow the user to print this file? Best case is I can somehow print directly from the byte[] or a MemoryStream.
You should simply
return File(stream, fileName, "application/pdf")from an MVC action.The browser will render the PDF using the appropriate plugin, and will (typically) offer a print button.