cyanfish / naps2

Scan documents to PDF and more, as simply as possible.
https://www.naps2.com
Other
2.58k stars 315 forks source link

Add a new option in profile creation to allow size of an image to be automatically determined by scanner #406

Closed mithnae closed 6 days ago

mithnae commented 1 week ago

Some scanner SANE drivers expose a feature of a scanner when scanner itself determines automatically length and width of a scanned document. When using xsane it is possible to exploit this feature, being particularly useful with ADF document scanners scanning batch of documents (e.g. receipts) of different sizes. Then each scan in a single batch can have different size.

Describe the solution you'd like Add another option to page size selection drop-down in scan profile dialog, stating «Auto» or «from scanner». It's presence can be either determined by this feature being exposed by scanner driver or available always, thus forcing NAPS2 just to accept bitmap size returned by scan operation.

Describe alternatives you've considered There is really no alternative to this mechanism.

cyanfish commented 6 days ago

See https://github.com/cyanfish/naps2/issues/226