Commit Graph

2398 Commits

Author SHA1 Message Date
Ben Olden-Cooligan
7f87a681f6 Move ClientCreds to NAPS2.Lib.Common and avoid custom prebuild 2022-07-29 22:09:34 -07:00
Ben Olden-Cooligan
7e162d82bd Clean up IMemoryImage/GdiImage/GdiExtensions 2022-07-28 20:57:37 -07:00
Ben Olden-Cooligan
9394262da4 Fix rgb vs bgr especially for grayscale conversion 2022-07-28 18:40:40 -07:00
Ben Olden-Cooligan
0626d352ed Replace BitmapHelper with the new ColorBitDepthTransform (or BlackWhiteTransform) 2022-07-28 17:48:43 -07:00
Ben Olden-Cooligan
920f7fc4c2 Generalize SaveSmallestFormat and move to ImageContext 2022-07-28 17:18:03 -07:00
Ben Olden-Cooligan
7e455aed35 Group test resources into Image/Binary/Pdf instead of by test class 2022-07-26 18:05:32 -07:00
Ben Olden-Cooligan
f3eea4f635 Remove WorkerScanBridge from the factory 2022-07-25 19:04:02 -07:00
Ben Olden-Cooligan
6623db1df3 Validate network options in order to simplify bridge condition 2022-07-25 19:02:39 -07:00
Ben Olden-Cooligan
07a5d4635f Create a SaveToTempFile helper in ScanningContext 2022-07-25 18:58:54 -07:00
Ben Olden-Cooligan
2a4de4f1e1 Rework OcrController configuration to be in ScanOptions (so SDK clients no longer need to use it) and fix implementation 2022-07-24 18:45:43 -07:00
Ben Olden-Cooligan
39783143ca OCR after scanning WIP 2022-07-24 18:08:50 -07:00
Ben Olden-Cooligan
47ad32b850 Improve twain parent window handling 2022-07-24 13:33:25 -07:00
Ben Olden-Cooligan
4fe2924f51 Cache element names and use dictionary lookups in XmlSerializer 2022-07-24 10:07:51 -07:00
Ben Olden-Cooligan
65b09be4d7 Preemptively check if a pdf/image to be overwritten is in use 2022-07-23 21:47:20 -07:00
Ben Olden-Cooligan
8805447580 Fix image saving 2022-07-23 21:46:31 -07:00
Ben Olden-Cooligan
17796065fa Implement auto send for GmailEmailProvider 2022-07-23 21:25:13 -07:00
Ben Olden-Cooligan
79b0579a69 Fix access violation for out-of-bounds crop 2022-07-23 21:03:13 -07:00
Ben Olden-Cooligan
483828e44d Prefer saving the explicit system provider name to help with 32/64 bit selection 2022-07-23 20:54:34 -07:00
Ben Olden-Cooligan
40f38fa8b2 Don't show the scan progress window for scanning with native ui 2022-07-23 20:15:10 -07:00
Ben Olden-Cooligan
1255948239 Fix Wia 1.0 scanning 2022-07-23 20:14:34 -07:00
Ben Olden-Cooligan
e128ea94c3 Clean up DirectImportOperation 2022-07-23 20:12:11 -07:00
Ben Olden-Cooligan
8bcccc6a7e Fix xml serialization of unspecified primitive types 2022-07-23 20:10:26 -07:00
Ben Olden-Cooligan
2a987a4e96 Implement dictionary xml serialization 2022-07-23 19:54:11 -07:00
Ben Olden-Cooligan
4f45deef7d Delete FScanProgress 2022-07-23 19:11:23 -07:00
Ben Olden-Cooligan
ad41e25d31 Fix twain transfer with nativeui 2022-07-23 18:54:03 -07:00
Ben Olden-Cooligan
d1214fcbfb Use twain worker even on 32-bit systems 2022-07-23 18:38:50 -07:00
Ben Olden-Cooligan
27af0c30ed Avoid leftover workers by manually checking for the parent process 2022-07-23 18:31:01 -07:00
Ben Olden-Cooligan
03e60f2287 Fix ImageClipboard encoding for PDFs and generalize away from gdi references 2022-07-23 18:06:29 -07:00
Ben Olden-Cooligan
ff007510d9 Pipeline DirectImportOperation and render in parallel worker processes for a big speedup 2022-07-23 17:41:58 -07:00
Ben Olden-Cooligan
52ac36ab26 Update documentation for ImageListDiffer/Syncer 2022-07-23 15:30:20 -07:00
Ben Olden-Cooligan
be49969420 Add tests for ImageListDiffer 2022-07-23 15:09:48 -07:00
Ben Olden-Cooligan
ab9d70da38 Improve RecoveryStorageManager testing by using the full image list update flow, just bypassing the write throttle 2022-07-23 11:37:01 -07:00
Ben Olden-Cooligan
e6d7639227 Bypass the image list sync throttle for active user interactions 2022-07-23 10:32:01 -07:00
Ben Olden-Cooligan
e54c4c4db3 Fix RefCount file name 2022-07-23 10:17:16 -07:00
Ben Olden-Cooligan
629b521010 Make ImageListSyncer's sync method private 2022-07-23 09:36:30 -07:00
Ben Olden-Cooligan
d6440ba747 Use ScanningContext to create images in PdfSharpImporter 2022-07-23 09:36:06 -07:00
Ben Olden-Cooligan
862c6662f9 Disallow transferring ownership of a shared file 2022-07-22 18:30:17 -07:00
Ben Olden-Cooligan
cc3462673f Finish ImageSerializer tests 2022-07-22 18:15:35 -07:00
Ben Olden-Cooligan
19c6498ad5 Polish image serialization options and add a bunch more image serialization tests 2022-07-22 17:40:19 -07:00
Ben Olden-Cooligan
14f11c6149 Rename SerializedImageHelper to ImageSerializer and add tests 2022-07-22 13:40:44 -07:00
Ben Olden-Cooligan
71f8d9956f Implement in-memory pdf storage 2022-07-21 21:44:57 -07:00
Ben Olden-Cooligan
3f816c1a13 Ignore invisible text when rendering a pdf page with a single image 2022-07-21 16:31:31 -07:00
Ben Olden-Cooligan
5d2f2dcef5 Better render pdf pages with a single image, fixing dpi mismatch issues 2022-07-20 21:02:58 -07:00
Ben Olden-Cooligan
236ab098da Update pdfium binaries 2022-07-20 20:28:42 -07:00
Ben Olden-Cooligan
915ebd49d6 Add non-naps2 pdf import tests 2022-07-20 16:05:40 -07:00
Ben Olden-Cooligan
feecb58c4e Add pdf rendering to ImageContext 2022-07-20 16:01:40 -07:00
Ben Olden-Cooligan
75835d91d3 Simplify image asserts 2022-07-19 18:21:45 -07:00
Ben Olden-Cooligan
4c8243faf2 Simplify PdfSharpImporter api and remove IComponentInstallPrompt 2022-07-19 18:21:20 -07:00
Ben Olden-Cooligan
d1fad8c220 Jpeg export with pdfium 2022-07-19 17:17:11 -07:00
Ben Olden-Cooligan
67e63c1fea Experimental pdfium exporter 2022-07-18 21:48:51 -07:00