Bug 105762 - Implement WIA based scanner support for LO Windows builds, 64 bit TWAIN drivers are not viable
Summary: Implement WIA based scanner support for LO Windows builds, 64 bit TWAIN drive...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.0.0.5 release
Hardware: All Windows (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 101066 106770 111407 118079 (view as bug list)
Depends on:
Blocks: Scanning
  Show dependency treegraph
 
Reported: 2017-02-05 08:55 UTC by petitlou60
Modified: 2018-06-12 12:11 UTC (History)
10 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description petitlou60 2017-02-05 08:55:33 UTC
Today scan functions were bypassed (see bug 92478) in 64 bits Windows version.

I use for photos irfanwiew 64 bits and i see it is able to scan with TWAIN or WIA interface without problems

So with task manager i have checked what process it starts for scanning
in fact it is simple when scan is started:

 irfanwiew 64 start a 32 bit stub which control a 32 bit subprocess which contains portion of irfanview 32 bit code dedicated to scan functions

Why not use same method in 64 bits Win LO  start a 32 bits stub which use portion of code 32 bits win LO which control scan functions ?

I think this is only method  because Windows does not provide 64 bits TWAIN interface


Bestregards
Comment 1 Julien Nabet 2017-02-05 11:02:53 UTC
Rereading tdf#92478, I noticed 2 things:
1) this tracker could be a dup of tdf#101066
2) https://bugs.documentfoundation.org/show_bug.cgi?id=92478#c29 advices to retrieve TWAINDSM.DLL, perhaps you can give it a try?
Comment 2 Julien Nabet 2017-02-05 11:04:41 UTC
Another interesting comment here:
https://bugs.documentfoundation.org/show_bug.cgi?id=104999#c2
Comment 3 V Stuart Foote 2017-02-06 06:55:55 UTC
64-bit TWAIN 2.3 drivers for Windows are not widely implemented. While we've added support to use TWAINDSM.DLL 64-bit driver [1]--in practice we have no Scan support for 64-bit Windows builds.

Implementing support for 64-bit WIA framework would allow use of widely available 64-bit scanner drivers. [2]

32-bit TWAIN drivers remain common, but providing 32-bit WIA should probably be implemented as well. WIA is stable enough on Windows that TWAIN could be deprecated.

=-ref-=

[1] http://cgit.freedesktop.org/libreoffice/core/commit/?id=7c983445656e1f1942cf2d7398a77342004ed168

[2]
https://msdn.microsoft.com/en-us/library/windows/hardware/ff553353(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/windows/hardware/ff545027(v=vs.85).aspx
Comment 4 V Stuart Foote 2017-03-26 03:40:45 UTC
*** Bug 106770 has been marked as a duplicate of this bug. ***
Comment 5 V Stuart Foote 2017-03-26 03:42:52 UTC
*** Bug 101066 has been marked as a duplicate of this bug. ***
Comment 6 V Stuart Foote 2017-03-26 04:24:47 UTC
this should be Windows only, TWAIN would remain viable for macOS and Linux
Comment 7 m.a.riosv 2017-08-06 11:47:51 UTC
*** Bug 111407 has been marked as a duplicate of this bug. ***
Comment 8 V Stuart Foote 2017-12-21 23:29:58 UTC
*** Bug 114635 has been marked as a duplicate of this bug. ***
Comment 9 Mike Kaganski 2018-01-12 07:27:21 UTC
A pointer to a one-function-does-it-all for potential implementers:

https://msdn.microsoft.com/en-us/library/windows/desktop/aa359932
Comment 10 petitlou60 2018-03-08 13:50:19 UTC
Hello everybody,

When i scan from an 64 bit application with WIA driver
i can see that WIA 64 bit driver start a 32 bit subtask
which with WIA 32 bit driver make the scan and after return image to main task.

So Even Microsoft recognize that scanner manufacturers don't often provide 64 bit drivers and use this strategy  as workaround.

So i continue to think that for 64 bit LO the only solutions are:

1) when select source select only WIA mode and ignore TWAIN

2) start a 32 bit subtask which use  32 bits LO scan code and return obtained image to main task

Best regards
Comment 11 V Stuart Foote 2018-06-12 12:11:48 UTC
*** Bug 118079 has been marked as a duplicate of this bug. ***