Develop a simple scanning application with the NAPS2 SDK

Digital Docs

Article from ADMIN 87/2025
By
A NAPS2 PDF scanner, the C# language, and the .NET Framework set the stage for a CLI app for scanning documents.

A simple command-line application that scans one or more documents and saves them as images (JPEG, PNG, TIFF) and PDFs uses an SDK provided by the Not Another PDF Scanner 2 (NAPS2) developers, the C# language, and the .NET framework. NAPS2 is a free, open source, document-scanning application that allows users to scan, organize, and save documents [1].

NAPS2 supports various scanners and offers optical character recognition (OCR), batch scanning, and easy document editing, all with a simple, user-friendly interface. Although the NAPS2 application and SDK are cross-platform, the drivers and libraries related to the system's graphical interface vary depending on the operating system. Therefore, the application in this article will be specific to Linux. However, you can adapt the code to a different environment by making a few simple modifications.

Setting Up the Environment

I recommend setting up an integrated development environment like Visual Studio Code (VSCode) [2] for C# and .NET programming and having a basic understanding of the language and the framework. On Ubuntu, an easy way to install VSCode is by downloading the .deb package, right-clicking the file, and selecting the Install option.

Alternatively, you can search for vscode in the App Center and click the Install button. If you prefer the terminal, you can find detailed instructions for any Linux distribution online [3]. I also suggest adding C# and .NET development extensions, including .NET Install Tool , C# , C# Dev Kit , and Code Runner to manage and run the project.

The .NET framework is necessary, and it is officially supported on various distributions. On Ubuntu, the easiest way is

...
Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy ADMIN Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

comments powered by Disqus
Subscribe to our ADMIN Newsletters
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs



Support Our Work

ADMIN content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.

Learn More”>
	</a>

<hr>		    
			</div>
		    		</div>

		<div class=