iPdfWriter.AspNet, extends iPdfWriter to work in AspNet (FullFramework) projects, contains extension methods to download PdfInput instances as well as OutputResult, facilitating its use in this environment.
I hope it helps someone. 😏
- From nuget gallery
|
|
- From package manager console
PM> Install-Package iPdfWriter.AspNet
public class AdobeReportController : ApiController
{
public void Get()
{
var downloadResult = Sample01.Generate().Download();
if (!downloadResult.Success)
{
// Handle error(s)
}
}
}
public class AdobeReportAsyncController : ApiController
{
public async Task GetAsync()
{
var result = await Sample01.GenerateAsync();
if (result.Success)
{
var safeOutputData = result.Result;
var downloadResult = await safeOutputData.Action(new DownloadAsync());
if (!downloadResult.Success)
{
// Handle error(s)
}
}
}
}
- Please see next link documentation.
If you have found iPdfWriter.AspNet useful at work or in a personal project, I would love to hear about it. If you have decided not to use iPdfWriter.AspNet, please send me and email stating why this is so. I will use this feedback to improve iPdfWriter.AspNet in future releases.
My email address is