Skip to content

Latest commit

 

History

History
97 lines (74 loc) · 2.53 KB

README.md

File metadata and controls

97 lines (74 loc) · 2.53 KB


What is iPdfWriter.AspNet?

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. 😏

Install via NuGet

  • From nuget gallery
NuGet Version
  • From package manager console

PM> Install-Package iPdfWriter.AspNet

Usage

Samples

Sample 1 - Shows the use of synchronous download

public class AdobeReportController : ApiController
{
    public void Get()
    {
        var downloadResult = Sample01.Generate().Download();
        if (!downloadResult.Success)
        {
            // Handle error(s)
        }
    }
}

Sample 2 - Shows the use of asynchronous download by DownloadAsync action

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)
            }
        }
    }
}

Documentation

How can I send feedback!!!

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

email.png