Develop a simple scanning application with the NAPS2 SDK

Digital Docs

Running the Application

To start the application [6], click the Run Code button (typically a Play icon in the top right corner; Figure 3). Alternatively, you can run the project with the command

dotnet run
Figure 3: Portion of the VSCode.

after ensuring you are in the folder where the .csproj file is located.

Assuming you are scanning a three-page document, the output will be similar to that shown in Figure 4. At the end of the process, you will find three JPEG files and doc.pdf in the project folder, representing the conversion of the scanned pages into a single PDF.

Figure 4: List of imported NuGet packages.

Conclusion

Although not a production sample, this code demonstrates how to build a document-scanning and PDF export utility. It efficiently integrates scanning, image processing, and file export into a seamless workflow, providing a foundation on which you can expand for more complex applications, such as adding OCR or scanner sharing.

The Author

Andrea Ciarrocchi is a technology enthusiast. You can find out more about his work at https://andreaciarrocchi.altervista.org.

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=