Bug 105762

Summary: Implement WIA based scanner support for LO Windows builds
Product: LibreOffice Reporter: petitlou60 <jmarc.thiault>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: enhancement CC: fitojb, floyd, harald.koester, himajin100000, info, n1xsj, oliver.brinzing, ricksal.cc, serval2412, stiglonnquist, t99, vsfoote, xiscofauli
Priority: high    
Version: 5.0.0.5 release   
Hardware: All   
OS: Windows (All)   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=92478
https://bugs.documentfoundation.org/show_bug.cgi?id=114635
https://bugs.documentfoundation.org/show_bug.cgi?id=118079
https://bugs.documentfoundation.org/show_bug.cgi?id=125238
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 104269    

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. ***
Comment 12 V Stuart Foote 2018-09-13 14:48:45 UTC
*** Bug 119816 has been marked as a duplicate of this bug. ***
Comment 13 V Stuart Foote 2018-09-13 15:51:55 UTC
Let's simplify the summary, TWAIN works well thanks to Mike K. but is dependent on 3rd party TWAIN support. Issue here requires a native Windows os implementation of MS Windows Image Acquisition framework where os scanner driver support is more common.
Comment 14 Xisco FaulĂ­ 2019-12-02 11:10:00 UTC
Changing priority to 'high' since the number of duplicates is 5 or higher
Comment 15 salmawisoky 2024-03-22 00:32:47 UTC Comment hidden (spam)