Ben Olden-Cooligan
af300170ab
Keyboard shortcut fixes
...
#228
2024-04-07 11:19:51 -07:00
Ben Olden-Cooligan
3490a5234a
Partially fix Pdfium PDF/A compliance and improve tests
2024-04-06 13:57:32 -07:00
Ben Olden-Cooligan
8e3ea2a4d8
Set PDF version 1.7 for PDF/A 2 and 3
...
#348
2024-04-06 13:28:47 -07:00
Ben Olden-Cooligan
9a2537c840
Use Polyfill package to simplify net462 support
2024-04-01 18:09:47 -07:00
Ben Olden-Cooligan
426330ea13
Linux: Support SingleInstance
2024-04-01 17:32:33 -07:00
Ben Olden-Cooligan
e547d35be1
Remove ImageContext from IMemoryImage constructors
...
Now that ImageContext is stateless it can be created on demand, simplifying a lot of things.
2024-04-01 00:25:25 -07:00
Ben Olden-Cooligan
7ef70c3f0a
Escl: Support HTTPS by default by generating self-signed certs
2024-03-31 21:52:06 -07:00
Ben Olden-Cooligan
e6318000b8
Add PageNumber and PageSide to PostProcessingData
2024-03-31 20:20:27 -07:00
Ben Olden-Cooligan
c07bcddf3b
Escl: HTTPS support, security policies, and HTTPS->HTTP fallback
...
#338
2024-03-27 23:25:25 -07:00
Ben Olden-Cooligan
79bba70370
Improve OCR text alignment
...
This is nearly a full rewrite of the alignment code. Position is now based on the line baseline (provided by Tesseract) and the font size is smarter (defaulting to Tesseract's provided value with various adjustments).
The goals were:
- Have Ctrl+F highlight the word as accurately as possible.
- Have Ctrl+A/Ctrl+C end up with text that matches the original as closely as possible.
- Have PdfSharp and Pdfium produce consistent output.
On my test cases all goals are fully met.
#236
2024-03-26 19:05:17 -07:00
Ben Olden-Cooligan
431a894fed
Upgrade packages
2024-03-19 17:01:32 -07:00
Ben Olden-Cooligan
95e4325743
Add debug logging for scan start
2024-03-18 09:28:28 -07:00
Ben Olden-Cooligan
b4dc656e84
Twain: Always set ICAP_BITDEPTH
...
The spec recommends always setting ICAP_PIXELTYPE and ICAP_BITDEPTH as there is no guaranteed default value. (thanks Alec Skelly)
2024-03-17 17:58:54 -07:00
Ben Olden-Cooligan
fc58f48c91
Simplify twain type names
2024-03-17 17:51:01 -07:00
Ben Olden-Cooligan
d2b4569499
Update language files
2024-03-10 19:37:31 -07:00
Ben Olden-Cooligan
e44eb682f9
Keep inner exceptions when serializing
2024-03-10 14:03:25 -07:00
Ben Olden-Cooligan
bda067fe6f
Use NAPS2.NTwain package
2024-03-09 19:50:06 -08:00
Ben Olden-Cooligan
3669c2df56
Use NAPS2.PdfSharp package
2024-03-09 19:47:05 -08:00
Ben Olden-Cooligan
72bf30403b
Undo/redo
2024-03-04 20:50:35 -08:00
Ben Olden-Cooligan
4a2308bf00
Fix mac build
2024-03-03 13:18:16 -08:00
Ben Olden-Cooligan
e20de728c3
Sdk: Fix packaging for PdfSharpCore/NTwain dlls
2024-03-03 13:10:36 -08:00
Ben Olden-Cooligan
1a0583a38a
Wia: Add debug logging for dpi changes
2024-03-03 12:45:52 -08:00
Ben Olden-Cooligan
4ba463ddec
Sdk: Keep SANE initialized for multiple operations
2024-02-29 16:59:21 -08:00
Ben Olden-Cooligan
c8eab254e3
Add a separate checkbox for OCR preprocessing
2024-02-25 11:55:08 -08:00
Ben Olden-Cooligan
33043256c3
Add "Show native TWAIN progress" compat option
2024-02-18 10:51:01 -08:00
Ben Olden-Cooligan
91717d1750
Move pre-processing inside TesseractOcrEngine
2024-02-18 10:38:06 -08:00
Ben Olden-Cooligan
d8191d69c7
Add OCR modes for pre-processing
2024-02-17 22:09:35 -08:00
Ben Olden-Cooligan
5001d4278a
Mac: Fix thumbnail rendering memory leak
...
#308
2024-02-13 23:27:41 -08:00
Ben Olden-Cooligan
47173e9a92
Twain: Include exception details in debug log
2024-02-10 14:01:00 -08:00
Ben Olden-Cooligan
7a5136c211
Twain: Handle errors correctly when MSG_ENABLEDS blocks
2024-02-10 13:59:22 -08:00
Ben Olden-Cooligan
8906f5b76e
Provide IPdfRenderer from ProcessedImage
2024-02-06 20:22:48 -08:00
Ben Olden-Cooligan
4c5b7e7620
Update language files
2024-02-04 19:31:21 -08:00
Ben Olden-Cooligan
1ea310e715
Sane: Fix page size for fujitsu/canon_dr backends
...
#281
2024-02-04 18:34:53 -08:00
Ben Olden-Cooligan
506ec8d70b
Sane: Rework non-deterministic ID handling
...
The new setup ensures each operation happens in a separate worker process, which is important as libusb on macOS seems to have some issues with running multiple SANE commands in a row.
2024-02-04 17:56:32 -08:00
Ben Olden-Cooligan
03d993d146
Fix SANE tests on Windows
2024-02-03 19:40:07 -08:00
Ben Olden-Cooligan
7402a3c412
Change Mac Khmer font
...
The old one has a mis-encoded descender value causing misalignment.
2024-02-03 19:37:33 -08:00
Ben Olden-Cooligan
1dc21c049b
Improve DEBUGOCR flag
2024-02-03 17:24:52 -08:00
Ben Olden-Cooligan
00469c526f
Pick macOS OCR fonts
2024-01-30 22:50:05 -08:00
Ben Olden-Cooligan
42db7b8b06
Sane: Handle non-deterministic device IDs
2024-01-30 22:14:00 -08:00
Ben Olden-Cooligan
6b60d3937a
Add a CopyDirectory helper
2024-01-30 21:08:50 -08:00
Ben Olden-Cooligan
7863336f01
Use font subsets for Pdfium OCR exporting
2024-01-21 12:54:53 -08:00
Ben Olden-Cooligan
1883e5abad
Pdfium font embedding
2024-01-21 10:54:11 -08:00
Ben Olden-Cooligan
42e4cb7873
Add a Syriac test case
2024-01-21 10:19:05 -08:00
Ben Olden-Cooligan
cece81a01f
Add Armenian script mapping for Linux
2024-01-20 21:46:54 -08:00
Ben Olden-Cooligan
1a921a0244
Comprehensive language->script->font mappings
2024-01-20 21:45:19 -08:00
Ben Olden-Cooligan
8a04a966c3
Pick PDF fonts for Linux
2024-01-20 19:13:12 -08:00
Ben Olden-Cooligan
1c91c624f2
Pick PDF font based on OCR language
2024-01-20 18:32:55 -08:00
Ben Olden-Cooligan
65b267707a
Escl: Swallow GetStatus errors during retries
2024-01-19 21:44:41 -08:00
Ben Olden-Cooligan
ab393d141b
Escl: Log more errors to debuglog
2024-01-19 21:42:19 -08:00
Ben Olden-Cooligan
17849e770e
Run MAPISendMail on the UI thread
...
#231
2024-01-14 19:27:53 -08:00