DustInTheWind.NN.Toolkit 1.6.0

Prefix Reserved
dotnet add package DustInTheWind.NN.Toolkit --version 1.6.0
                    
NuGet\Install-Package DustInTheWind.NN.Toolkit -Version 1.6.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="DustInTheWind.NN.Toolkit" Version="1.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DustInTheWind.NN.Toolkit" Version="1.6.0" />
                    
Directory.Packages.props
<PackageReference Include="DustInTheWind.NN.Toolkit" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DustInTheWind.NN.Toolkit --version 1.6.0
                    
#r "nuget: DustInTheWind.NN.Toolkit, 1.6.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.
#:package DustInTheWind.NN.Toolkit@1.6.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DustInTheWind.NN.Toolkit&version=1.6.0
                    
Install as a Cake Addin
#tool nuget:?package=DustInTheWind.NN.Toolkit&version=1.6.0
                    
Install as a Cake Tool

NN Toolkit

GitHub Repo GitHub Build NuGet Version NuGet Downloads

NN Toolkit is a .NET library for working with files exported from NN (Nationale-Nederlanden), currently focused on parsing PDF contribution statements for the Romanian Mandatory Private Pension (Pilon II).

NN Group reference:

The package is published as DustInTheWind.NN.Toolkit.

What The Library Does Today

The current public functionality is centered around one workflow:

  1. Load a PDF exported from the NN Direct mobile app.
  2. Parse the contributions table across all pages: ContributionsDocument
  3. Provide parsing diagnostics: DocumentParsingDiagnostics

Installation

Package Manager:

Install-Package DustInTheWind.NN.Toolkit

.NET CLI:

dotnet add package DustInTheWind.NN.Toolkit

Runtime Requirements

  • Library target framework: .NET 8.0 (net8.0)
  • The parser relies on PDF table extraction via Tabula.

If you are consuming the NuGet package, transitive dependencies are resolved automatically.

Quick Start

a) Export the Contributions PDF From NN Direct

In NN Direct mobile app:

  1. Log in.
  2. Open Pensie privata obligatorie.
  3. Open Istoric contribuții.
  4. Select the full interval you need.
  5. Use the menu (three dots) and tap Descarcă raport.

You will get a PDF containing contribution rows that can be parsed with this toolkit.

b) Parse the Exported Document

Create a small console app and parse your exported file:

using DustInTheWind.NN.Toolkit.MandatoryPrivatePension;

DocumentLoadResult result = ContributionsDocument.LoadFromFile("contributions.pdf");
ContributionsDocument document = result.Document;

foreach (Contribution contribution in document)
{
	...
}

Contribution Record

Each row is mapped to:

  • Month (MonthDate)

    • expects date in the MM/YYYY style.
  • GrossValue (decimal)

  • AdministrationFee (decimal)

  • NetValue (decimal)

  • UnitValue (decimal)

  • UnitCount (decimal)

  • PaidInMonth (MonthDate)

    • expects date in the MM/YYYY style.

Parsing Diagnostics

When a document is parsed using ContributionsDocument.LoadFromFile(), both the parsed data and parsing diagnostics are returned.

using DustInTheWind.NN.Toolkit.MandatoryPrivatePension;
using DustInTheWind.NN.Toolkit.MandatoryPrivatePension.Pdf;

DocumentLoadResult result = ContributionsDocument.LoadFromFile("contributions.pdf");

foreach (PageParsingDiagnostics page in result.Diagnostics.Pages)
{
	...
}

End-To-End Example: Export To CSV

The repository includes a sample CLI project in sources/NN.Toolkit.Cli that demonstrates:

  • reading contributions.pdf
  • writing CSV files (NN_transactions.csv, NN_cash_transactions.csv)
  • printing parsed data and diagnostics.

You can use this project as a reference implementation for your own importer/exporter tools.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
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.6.0 128 6/26/2026
1.5.0 140 5/25/2026
1.4.0 110 5/25/2026
1.3.0 114 5/25/2026
1.2.0 114 5/24/2026
1.1.0 109 5/24/2026
1.0.8 120 5/22/2026
1.0.6 112 5/22/2026