Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kuritka/globalnotesdemo
https://github.com/kuritka/globalnotesdemo
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kuritka/globalnotesdemo
- Owner: kuritka
- License: mit
- Created: 2018-03-29T14:12:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-06T08:12:58.000Z (over 3 years ago)
- Last Synced: 2024-10-05T11:22:34.094Z (about 1 month ago)
- Language: C#
- Size: 71.8 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
Extremely easy way to create Pdf files from Asp.Net Core.
Usage:
public ActionResult PrintIndex()
{
return new ActionAsPdf("Index", new { name = "Giorgio" }) { FileName = "Test.pdf" };
}public ActionResult Index(string name)
{
ViewBag.Message = string.Format("Hello {0} to ASP.NET MVC!", name);return View();
}public ActionResult TestViewWithModel(string id)
{
var model = new TestViewModel {DocTitle = id, DocContent = "This is a test"};
return new ViewAsPdf(model);
}Also available a RouteAsPdf, UrlAsPdf ActionResult.
It generates Pdf also from authorized actions (web forms authentication).