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
QA Contact:
URL:
Whiteboard:
Keywords:
: 101066 106770 111407 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-02-05 08:55 UTC by petitlou60
Modified: 2017-08-07 11:43 UTC (History)
7 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. ***