InvoicerNETCore 1.0.0

dotnet add package InvoicerNETCore --version 1.0.0                
NuGet\Install-Package InvoicerNETCore -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="InvoicerNETCore" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add InvoicerNETCore --version 1.0.0                
#r "nuget: InvoicerNETCore, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install InvoicerNETCore as a Cake Addin
#addin nuget:?package=InvoicerNETCore&version=1.0.0

// Install InvoicerNETCore as a Cake Tool
#tool nuget:?package=InvoicerNETCore&version=1.0.0                

Invoicer

A simple PDF invoice generator for .NET Core, taken from simonray/Invoicer

Usage

new InvoicerApi(SizeOption.A4, OrientationOption.Landscape, "£")
    .TextColor("#CC0000")
    .BackColor("#FFD6CC")
    .Image(@"vodafone.jpg", 125, 27)
    .Company(Address.Make("FROM", "Vodafone Limited", "Vodafone House", "The Connection", "Newbury", "Berkshire RG14 2FN"))
    .Client(Address.Make("BILLING TO", "Isabella Marsh", "Overton Circle", "Little Welland", "Worcester", "WR## 2DJ"))
    .Items(new List<ItemRow> { 
        ItemRow.Make("Nexus 6", "Midnight Blue", (decimal)1, 20, (decimal)166.66, (decimal)199.99),
        ItemRow.Make("24 Months (£22.50pm)", "100 minutes, Unlimited texts, 100 MB data 3G plan with 3GB of UK Wi-Fi", (decimal)1, 20, (decimal)360.00, (decimal)432.00),
        ItemRow.Make("Special Offer", "Free case (blue)", (decimal)1, 0, (decimal)0, (decimal)0),
    })
    .Totals(new List<TotalRow> {
        TotalRow.Make("Sub Total", (decimal)526.66),
        TotalRow.Make("VAT @ 20%", (decimal)105.33),
        TotalRow.Make("Total", (decimal)631.99, true),
    })
    .Details(new List<DetailRow> {
        DetailRow.Make("PAYMENT INFORMATION", "Make all cheques payable to Vodafone UK Limited.", "", "If you have any questions concerning this invoice, contact our sales department at sales@vodafone.co.uk.", "", "Thank you for your business.")
    })
    .Footer("http://www.vodafone.co.uk")
    .Save();

Sample Invoice

References

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 1,749 1/22/2021