Commit Graph

934 Commits

Author SHA1 Message Date
Ben Olden-Cooligan
40cd0be9ae Add debug logging for MAPI 2024-01-14 19:26:51 -08:00
Ben Olden-Cooligan
13124fa485 Limit general settings by platform support 2024-01-14 18:04:04 -08:00
Ben Olden-Cooligan
56523bc20b Update language files 2024-01-12 23:27:31 -08:00
Ben Olden-Cooligan
488429ea8d Escl: Change device ID to be just the UUID 2024-01-12 19:25:41 -08:00
Ben Olden-Cooligan
560dd9b5b7 Console: Improved error handling and driver/device fixes 2024-01-12 18:46:15 -08:00
Ben Olden-Cooligan
dc2cb05d73 Validate driver for the current platform 2024-01-10 23:00:16 -08:00
Ben Olden-Cooligan
5d7c72e223 Console: Add --rotate option
#252
2024-01-10 20:38:15 -08:00
Ben Olden-Cooligan
ea1bd7e33f Parse well-known page sizes 2024-01-10 20:07:21 -08:00
Ben Olden-Cooligan
fbb71c7b65 Parse page sizes without spaces 2024-01-10 19:39:33 -08:00
Ben Olden-Cooligan
264b2b04c9 Remove unnecessary argument 2024-01-10 19:38:09 -08:00
Ben Olden-Cooligan
26cbaabf90 Make ImageExportHelper static 2024-01-09 21:02:33 -08:00
Ben Olden-Cooligan
c785204f30 Tune OCR worker count
#271
2024-01-05 10:22:06 -08:00
Ben Olden-Cooligan
bb1cd23896 Keep proto compatibility 2024-01-03 16:12:58 -08:00
Ben Olden-Cooligan
3fe4ab874d Remove redundant black/white conversions 2024-01-03 16:10:07 -08:00
Ben Olden-Cooligan
85fa64427a Remove BitDepth from ImageMetadata
This is obsolete now that we have LogicalPixelFormat
2024-01-03 16:08:11 -08:00
Ben Olden-Cooligan
37032983f5 Rename ImagePixelFormat.Unsupported to Unknown 2024-01-03 15:55:02 -08:00
Ben Olden-Cooligan
0afea36ba5 Rename ImageFileFormat.Unspecified to Unknown 2024-01-03 15:53:38 -08:00
Ben Olden-Cooligan
0b93ca2a15 Calculate LogicalPixelFormat lazily 2024-01-03 15:52:19 -08:00
Ben Olden-Cooligan
ae89fa60d7 Update copyright year to 2024 2023-12-30 14:45:47 -08:00
Ben Olden-Cooligan
bdd5438182 Sdk: Add WPF package to readme 2023-12-30 12:37:42 -08:00
Ben Olden-Cooligan
418116c432 Make OcrController internal 2023-12-30 12:30:24 -08:00
Ben Olden-Cooligan
8b230f5323 Improve ScanDriverException hierarchy
Specific exception types for different errors (e.g. paper jam) will allow SDK users to handle specific cases according to their business logic.
2023-12-30 12:21:44 -08:00
Ben Olden-Cooligan
a13aca995c Add xml docs 2023-12-30 11:59:34 -08:00
Ben Olden-Cooligan
1ec8bb5228 Sdk: Make TwainTransferMode.Memory the default 2023-12-30 11:12:06 -08:00
Ben Olden-Cooligan
f19a1e003f Add xml docs 2023-12-30 11:10:54 -08:00
Ben Olden-Cooligan
8db66c0706 Split SharedDevice into internal and config-level types 2023-12-30 10:58:38 -08:00
Ben Olden-Cooligan
1eacb9986f Add xml doc and remove unnecessary types 2023-12-30 10:35:09 -08:00
Ben Olden-Cooligan
8653b48410 Remove unnecessary import interfaces 2023-12-30 10:19:20 -08:00
Ben Olden-Cooligan
0a40509690 Add xml docs 2023-12-30 10:16:22 -08:00
Ben Olden-Cooligan
05507c01bd Sdk: Doc cross-links 2023-12-30 10:02:37 -08:00
Ben Olden-Cooligan
319b3e6ef3 Make email types internal 2023-12-29 21:23:45 -08:00
Ben Olden-Cooligan
75a11525cd Make EndianReader internal 2023-12-29 21:11:09 -08:00
Ben Olden-Cooligan
6a3258c942 Docfx fixes 2023-12-29 21:11:02 -08:00
Ben Olden-Cooligan
eb104ec0f1 Sdk: Make protobufs internal 2023-12-29 21:02:54 -08:00
Ben Olden-Cooligan
dd43092fe2 Docfx WIP 2023-12-29 19:49:06 -08:00
Ben Olden-Cooligan
dd83057b48 Sdk: Make OCR sdk-friendly 2023-12-29 14:15:58 -08:00
Ben Olden-Cooligan
9a6fb36a8c Sdk: Add links to individual samples in the readme 2023-12-29 13:33:23 -08:00
Ben Olden-Cooligan
f66d30bbbd Remove tempFolder from TesseractOcrEngine constructor 2023-12-29 13:30:01 -08:00
Ben Olden-Cooligan
031c5cb4dd Fix translations with quotes 2023-12-23 12:16:46 -08:00
Ben Olden-Cooligan
ca4d21e0a2 Update language files 2023-12-22 06:18:58 -08:00
Ben Olden-Cooligan
15b1c599fd Mac: Show no pages in feeder error 2023-12-21 06:17:25 -08:00
Ben Olden-Cooligan
b737ceba4f Update language files 2023-12-16 20:36:31 -08:00
Ben Olden-Cooligan
e7d25079cc Mac: Set DocumentType when scanning 2023-12-16 15:37:13 -08:00
Ben Olden-Cooligan
730e681bcd Escl: Also use JPEG after HTTP 409 2023-12-16 15:09:01 -08:00
Ben Olden-Cooligan
879c907cdf Escl: Change ColorMode from B&W after HTTP 409 2023-12-16 15:04:28 -08:00
Ben Olden-Cooligan
9d976c1677 Mac: Fix grayscale stride misalignment 2023-12-16 13:46:45 -08:00
Ben Olden-Cooligan
92bfc766ad Sdk: Update readme 2023-12-16 13:42:26 -08:00
Ben Olden-Cooligan
0ba58617ce Escl: Quality fixes 2023-12-13 21:46:45 -08:00
Ben Olden-Cooligan
b5b02746c7 Add NAPS2.Escl.Server as an sdk project 2023-12-13 00:52:16 -08:00
Ben Olden-Cooligan
72daa68e24 Fix PageStart events for wia/apple 2023-12-12 21:23:35 -08:00
Ben Olden-Cooligan
5a6d869232 Twain: Don't return partial images on cancel 2023-12-12 21:12:30 -08:00
Ben Olden-Cooligan
052e0535ac Update language files 2023-12-12 20:57:27 -08:00
Ben Olden-Cooligan
9092870ee7 Escl: Job cleanup and minor fixes 2023-12-12 20:55:09 -08:00
Ben Olden-Cooligan
0cb36e55f1 Escl: Allow cancelling during scanning device search 2023-12-11 22:25:45 -08:00
Ben Olden-Cooligan
ef64c4840d Escl: Add SearchTimeout option 2023-12-11 22:16:46 -08:00
Ben Olden-Cooligan
ff0d538d25 Escl: Only use the path from the job URI
We want to use the same host etc. as all other requests, particularly for IPv6 link-local addresses which need the network interface.
2023-12-11 18:20:57 -08:00
Ben Olden-Cooligan
b5b30da41e Escl: Add ScanServer integration tests 2023-12-11 17:44:46 -08:00
Ben Olden-Cooligan
099432758b Add a ContentTypes class 2023-12-11 17:34:22 -08:00
Ben Olden-Cooligan
d41317b173 Escl: Set XOffset based on PageAlign 2023-12-11 17:27:00 -08:00
Ben Olden-Cooligan
fa14691c30 Escl: Snap to closest PageAlign based on XOffset 2023-12-11 17:24:04 -08:00
Ben Olden-Cooligan
4440bc0206 Escl: Retry NextDocument on unexpected error 2023-12-10 20:17:33 -08:00
Ben Olden-Cooligan
5e22a9dd07 Escl: Dispose images after encoding 2023-12-10 15:26:31 -08:00
Ben Olden-Cooligan
14a0ce8934 Escl: Add an ErrorDetails extension 2023-12-10 14:27:12 -08:00
Ben Olden-Cooligan
cf6dd8d9e7 Restrict RemotingHelper to exceptions derived from ScanDriverException 2023-12-10 13:46:53 -08:00
Ben Olden-Cooligan
cdd3870f56 Escl: Use a NAPS2 instance ID to keep UUIDs unique 2023-12-10 11:30:18 -08:00
Ben Olden-Cooligan
84ee5380db Remove ScanController.ScanError event
This always happens in concert with the ScanEnd event so merging them is a simplification.
2023-12-09 22:15:52 -08:00
Ben Olden-Cooligan
f2ea99a888 Wia: Don't throw NoPagesException for flatbed 2023-12-09 21:59:51 -08:00
Ben Olden-Cooligan
a7c2bb8642 Escl: Merge pages for application/pdf 2023-12-09 21:40:16 -08:00
Ben Olden-Cooligan
7d651aa31b Sane: Respect ExcludeLocalIPs 2023-12-09 21:03:35 -08:00
Ben Olden-Cooligan
3848d2b1ae ExcludeLocalIPs instead of ExcludeUuids 2023-12-09 20:50:43 -08:00
Ben Olden-Cooligan
c61c2babe7 Log unhandled exceptions in EsclServer 2023-12-09 17:14:01 -08:00
Ben Olden-Cooligan
34095aa9df Wia: Consistently throw NoPagesException 2023-12-09 17:07:29 -08:00
Ben Olden-Cooligan
fdcec857e9 Use EtoInvoker instead of SyncContextInvoker 2023-12-07 21:10:03 -08:00
Ben Olden-Cooligan
3995ac1484 Twain: Add source identity info to debug log 2023-12-06 20:32:36 -08:00
Ben Olden-Cooligan
b92362af02 C# 12: Use collection initializers 2023-12-06 20:17:50 -08:00
Ben Olden-Cooligan
98019c80b8 Escl: Use PDF export to stream 2023-12-06 19:48:35 -08:00
Ben Olden-Cooligan
2596f8e590 Ensure parent dir exists in PDFExporter
#214, closes #216
2023-12-06 19:40:26 -08:00
Ben Olden-Cooligan
e431157610 Add PDF export to stream 2023-12-06 19:36:34 -08:00
Ben Olden-Cooligan
07afb74ef8 Fix SharedDevice duplicate detection 2023-12-04 17:00:10 -08:00
Ben Olden-Cooligan
20e8d8519c Escl: Server support for jpeg/png/pdf content types 2023-12-03 21:43:33 -08:00
Ben Olden-Cooligan
07bf46d53f Escl: Separate device and job state 2023-12-03 21:14:58 -08:00
Ben Olden-Cooligan
1aa8dd87c9 Escl: Fix client flow
Don't cancel on success, and always call NextDocument until it returns null (otherwise the job might not be marked as complete).
2023-12-03 18:18:38 -08:00
Ben Olden-Cooligan
29b3c57207 Escl: Fix port handling and server restarts
Ports are now static per SharedDevice where possible, falling back to random ports if an error occurs.
2023-12-02 22:57:30 -08:00
Ben Olden-Cooligan
2021a1fa23 Escl: Key by SharedDevice and simplify API 2023-12-01 18:05:39 -08:00
Ben Olden-Cooligan
0f3b4abcd3 Add Driver as a property on ScanDevice 2023-12-01 18:03:55 -08:00
Ben Olden-Cooligan
b6d6e6b833 Twain: Work around Kyocera bug with unspecified memory buffer columns 2023-11-29 16:08:17 -08:00
Ben Olden-Cooligan
e3570b9d47 Replace Debug.WriteLine with ILogger.LogDebug 2023-11-29 16:08:05 -08:00
Ben Olden-Cooligan
0db52abe26 Twain: Handle unexpected native transfer 2023-11-29 16:04:51 -08:00
Ben Olden-Cooligan
09aafb5cf5 Escl: Basic server settings 2023-11-28 00:58:05 -08:00
Ben Olden-Cooligan
a82f5671e6 Add a sample and update sdk doc for NAPS2.Escl.Server 2023-11-27 20:31:30 -08:00
Ben Olden-Cooligan
2041107625 Remove NAPS2.Escl.Server as a dep from NAPS2.Sdk
Now it is optional for sdk usage, ensuring that transitive dependencies aren't installed unnecessarily.
2023-11-27 20:17:03 -08:00
Ben Olden-Cooligan
c6d55ac76a Escl: Serve default naps2 icon for scanners
Not sure if it's fully working as no icon is showing up in macOS yet.
2023-11-26 20:37:25 -08:00
Ben Olden-Cooligan
1de6b001da Escl: Exclude local shared devices from ESCL Driver device list 2023-11-26 19:05:44 -08:00
Ben Olden-Cooligan
e3367ee78e Escl: Enable ESCL driver on Mac/Linux
Now that we have progress reporting, there's a clear benefit to native ESCL support over relying on Apple/SANE. Also you don't need to set up a scanner (Mac), wait 10s for SANE to resolve (Linux), or deal with device IDs changing over time (Linux).

#115
2023-11-26 18:20:15 -08:00
Ben Olden-Cooligan
a9032b66b7 Escl: State management fixes 2023-11-26 18:16:23 -08:00
Ben Olden-Cooligan
e14fc40b13 Escl: Progress extension wip 2023-11-26 12:44:32 -08:00
Ben Olden-Cooligan
8a7c304ee0 Fix warnings 2023-11-25 13:47:17 -08:00
Ben Olden-Cooligan
804f110504 Update dependency versions 2023-11-25 13:41:29 -08:00
Ben Olden-Cooligan
8ae78b9e2a Twain: Handle zero width/height in ImageData 2023-11-25 10:42:51 -08:00
Ben Olden-Cooligan
61aebe6c8c Migrate to net8 2023-11-18 11:43:50 -08:00