$device = $wia.ShowSelectDevice() $item = $device.Items(1) $item.Properties("6146").Value = 300 # Horizontal resolution $item.Properties("6147").Value = 300 # Vertical resolution $item.Properties("6148").Value = 1 # Color (1=color, 2=grayscale, 4=blackwhite) $scan = $item.Transfer() $scan.SaveFile("C:\Scans\custom.jpg")
Windows Scan app saves as PDF if you choose “PDF” from file type dropdown. If missing, the scanner driver doesn’t report PDF capability — use a different app. scan utility windows 11
If you need a specific part explored further — like automating scans to SharePoint, writing a custom scanner UI, or fixing a driver conflict — let me know and I’ll go deeper. $device = $wia