Skip to content

Releases: dynarithmic/twain_library

v5.4.7

06 Aug 19:33
a5c604d
Compare
Choose a tag to compare

Version 5.4.7

  • Fixed issue with loading 32-bit TWAINDSM.DLL if only found on the system path.

  • Fixed issue with some DTWAIN API calls not retaining error codes when DTWAIN_GetLastError() is invoked.

  • Added additional resource strings to the twainresourcestrings_* resource files.

v5.4.6

18 Jul 11:12
0e1dda8
Compare
Choose a tag to compare

Version 5.4.6

  • Increase width of the label field in the TWAIN "Select Source" dialog when using DTWAIN_SelectSource2()

  • Fix typo in dtwain64u.cs file.

v5.4.5

17 Jul 03:16
c05c42e
Compare
Choose a tag to compare

Version 5.4.5

  • Upgraded following internal image, compression, and cryptography libraries:

    libpng   --> 1.6.43
    libwebp  --> 1.4.0
    zlib     --> 1.3.1
    
  • Fixed issue with saving to files using the DTWAIN_USEPROMPT flag when calling DTWAIN_AcquireFile.

  • Fixed issue with DTWAIN_AcquireFileEx when using the DTWAIN_CREATE_DIRECTORY file flag.

  • Added generation of Targa Run Length Encoded files to DTWAIN_AcquireFile. The new constant to use to
    generate thee files is DTWAIN_TGA_RLE.

  • Added generation of BMP Run Length Encoded files to DTWAIN_AcquireFile. The new constant to use to
    generate these files is DTWAIN_BMP_RLE. Usage of RLE reduces the size of the resulting BMP file.
    Note that this is only available for 8 bit-per-pixel BMP files.

  • Fixed issue with DTWAIN_SelectOCREngine not showing product name of available OCR engines.

  • Added entry to twaininfo.txt to properly handle text obtained from 1 bit-per-pixel OCR-ed images.

v5.4.4

14 May 21:32
665a243
Compare
Choose a tag to compare

Version 5.4.4

  • Fixed possible null pointer access when retrieving the default TWAIN Source.

v5.4.3

16 Jan 23:44
dcaf6df
Compare
Choose a tag to compare

Version 5.4.3

  • Updated page handling logic when scanning duplex pages.

The number of pages specified by the DTWAIN_Acquire...() family of functions will automatically be doubled
when the following occurs:

  1. acquiring duplex pages
    (DTWAIN_EnableDuplex has been called to set the duplexer to TRUE, or the device's only method of acquiring
    images is duplex)

and

  1. The TWAIN Source user-interface is disabled.

For 2) if the user interface is enabled, there is no way for DTWAIN to know if the user selected or deselected the duplex
option (if one exists), so the page count cannot be automatically doubled. In this case, the driver is responsible for the
duplexing to work properly if the user desired to enable duplexing.

  • Updated the copyright notices on source files, DLL's, etc. to the year 2024.

v5.4.2

14 Oct 23:30
aced64c
Compare
Choose a tag to compare

Version 5.4.2

Updates:

  • Upgraded following internal image, compression, and cryptography libraries:

    crypto++ --> 8.9
    libtiff  --> 4.6
    libpng   --> 1.6.39
    libjpg (IJG) --> 9e
    libwebp  --> 1.3.2
    openjpeg --> 2.5.0
    zlib     --> 1.3.0.1
    
  • Dynarithmic Software version information is now embedded in generated JPEG-2000 image files.

v5.4.1

24 Sep 16:26
7e0aa97
Compare
Choose a tag to compare

Version 5.4.1

Updates:

  • Address issue with DTWAIN_SetTwainLog() and resetting the logging options to "no logging" if logging has already been set.

  • Optimize various calls to the internal API functions.

v5.4.0

04 Aug 23:01
86e00d2
Compare
Choose a tag to compare

Version 5.4.0

Updates:

  • DTWAIN Version numbering will now use 3 components:
    MajorVersion.MinorVersion.PatchVersion

  • For DTWAIN_AcquireFile(), DTWAIN_AcquireFileEx(), added image file type DTWAIN_ICO_RESIZED
    and DTWAIN_WBMP_RESIZED. These are Windows ICON file and Wireless Bitmap files, respectively,
    that are a resized version of the image acquired if the image's original width and/or height
    exceeds a length of 255. The image will be resampled to a 255 x 255 bitmap if either
    the width or height exceeds 255.

    This differs from DTWAIN_ICO and DTWAIN_WBMP in that if the image's width or height acquired
    exceeds 255, the image will be invalid and thus no image file will be created.

  • Added DTWAIN_SelectSource alternative functions:

    DTWAIN_SelectSourceByNameWithOpen
    DTWAIN_SelectSourceByNameWithOpenA
    DTWAIN_SelectSourceByNameWithOpenW
    DTWAIN_SelectSourceWithOpen
    DTWAIN_SelectDefaultSourceWithOpen

    Each of these functions allow selecting a TWAIN source with the option to also open the
    source once it has been selected. For example:

        DTWAIN_SOURCE source = DTWAIN_SelectSourceWithOpen(FALSE);  // Select, but do not open the source
	DTWAIN_OpenSource(source); // Open the selected source

This will easily allow applications to just select the source, if there is a possibility
that opening the source after selection may cause issues (hardware issue, driver issue, etc.).

These new functions should be used to control opening a selected source instead of the
DTWAIN_OpenSourcesOnSelect() function, as DTWAIN_OpenSourcesOnSelect() is a global setting.
The new DTWAIN_SelectSource...WithOpen() functions will not use the DTWAIN_OpenSourcesOnSelect()
setting.

  • Added the following select source options to functions DTWAIN_SelectSource2() and DTWAIN_SelectSource2Ex():

    DTWAIN_DLG_OPENONSELECTON - Open source if selected
    DTWAIN_DLG_OPENONSELECTOFF - Do not open source if selected

    These new options now control if a selected source will be opened or not opened on selection. If both
    options are used, DTWAIN_DLG_OPENONSELECTON is assumed.

v5.3.0.8

02 Jul 15:49
bcf5555
Compare
Choose a tag to compare

Address issue with DTWAIN_SetMultipageScanMode.

v5.3.0.7

19 Jun 01:55
a8450f8
Compare
Choose a tag to compare

Address issues with DTWAIN_SetAcquireArea.