cyanfish / naps2

Scan documents to PDF and more, as simply as possible.
https://www.naps2.com
Other
2.88k stars 330 forks source link

In my project, I want to see the documents I scanned using the naps2 library. #486

Open busraaguler opened 2 weeks ago

busraaguler commented 2 weeks ago

Hello, we want to save the data we scanned to the database using the naps2 library. How can I at least see the page I scanned using naps2? I'll save it to a path for now and preview it later. Do you have sample code for these operations? I tinkered with the project a lot, but. It scans, but I can't see where it saves what I scanned.

cyanfish commented 2 weeks ago

I'm not exactly sure what you're asking. Do you have something like a Windows Forms application and want to see it in your UI? Maybe this sample will help, it shows how to create a System.Drawing.Bitmap object from the scanned images (or you can use the equivalent method for WPF) https://github.com/cyanfish/naps2/blob/master/NAPS2.Sdk.Samples/ScanToBitmapSample.cs