Search code examples
c#wpfwiaimage-scanner

Scan and store as PDF an image with a scanner in USB


Hi i am trying to scan something in the Scanner and put it in an Image object (C#) and then pick that image and generate a PDF (to that i am using iTextSharp). So i am trying to use WIA (Windows Image Acquisition) but for what i know this only works with Devices connected in USB. (but if it's possible i prefer something that works with Devices in USB and in the Network)

Is there any better libraries or ways to do this type of things? (I tried first to work with Twain but seems to be complicated to find free libraries.)

I am working in WPF(C#) and so i need to understand how the WIA works or anything better to do this.

Thanks in advance!


Solution

  • WIA doesn't care how the device is connected, that's an implementation detail of the WIA provider. You get that from the device manufacturer. Twain is grossly obsolete. I don't see a real question here, check this answer for the way to get started with WIA in a C# project.