I want to generate pdf file in class library.
I want to generate a view to pdf. I use Rotative for this ,but i need ControllerContext
.
var pdf= new Rotativa.UrlAsPdf("my url");
var bytes = pdf.BuildFile(new ControllerContext());
var memoryStream = new MemoryStream(bytes);
How to generate pdf file in class library?
How to generate pdf file in class library?
New contributor
Azimeh Rahimi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.