Autocrop and Batch feeder without "No Paper" error#830
Open
ArneNostitz wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces two new enhancements to improve the scanning workflow: Auto-Crop and Seamless Batch Feeder Scanning.
1. Auto-Crop
Added a new post-processing option to automatically crop scanned pages to their content.
Independent Axis Control: Users can configure the width and height cropping modes independently (Auto, Fixed, or Off). This is particularly useful for scanning documents with uniform widths but variable heights (like long receipts or custom-sized slips).
Core Implementation: Added AutoCropper which scans the image bit-pixels to detect content bounds based on configurable thresholds, and applies a corresponding CropTransform.
UI Integration: Added a dedicated AutoCropForm accessible from the Advanced Profile settings, the Desktop toolbar, and Image List Actions.
Configuration: Exposed settings via ScanOptions and ScanProfile, allowing configurable padding and target fixed dimensions (in millimeters). Included full SDK integration via RemotePostProcessor.
Testing: Added comprehensive unit tests in AutoCropTests.cs.
2. Seamless Batch Feeder (No "No Paper" Error)
Improved the batch scanning experience when using an Automatic Document Feeder (ADF).
Modified the batch scanning logic to handle an empty feeder gracefully without throwing a disruptive "No Paper" error dialog, streamlining continuous batch scanning workflows.
Related Issues
Resolves #789 - Auto-crop for custom document scans
Resolves #716 - Paper sensor on Brother DS-740D (Seamless batch feeder / No "No Paper" error)
Partially addresses #806 - Feature Request: Auto Crop for Imported Images
Partially addresses #226 - Automatic page size
Checklist
Tested with local builds
Added unit tests for Auto-Crop functionality
Updated relevant UI strings and localization resources