NAPS2 freezes at the last back page of ADF dual duplex scan.
The back of the last scan is NOT transmitted to naps2.
Naps2 seems to wait infinitely for the scanner to respond. „Warte auf TWAIN zur Fertigstellung…“ -> Translation: „Wait for TWAIN to finish…“
See picture: 01 Wait for TWAIN to finish.jpg

The task manager shows 3 worker processes. I have to kill the 3rd one (see yellow marking in the picture) to proceed in naps2.
See picture: 02 Kill NAPS2 Worker in Task Manager.jpg

Error-Window: „An error occured with the scanning driver.“
See picture: 03 An error occured with the scanning driver.jpg

„Technical Details“:
NAPS2.Scan.Exceptions.ScanDriverUnknownException: Ein Fehler ist mit dem Scanner-Treiber aufgetreten. ---> System.ServiceModel.CommunicationException: Der Server hat keine sinnvolle Antwort gegeben; dies kann durch einen nicht übereinstimmenden Vertrag, ein vorzeitiges Herunterfahren der Sitzung oder durch einen internen Serverfehler verursacht sein.
bei Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
bei Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
bei NAPS2.Scan.ScanDriverBase.<>c__DisplayClass30_0.<<scan>b__0>d.MoveNext()
--- Ende der internen Ausnahmestapelüberwachung ---
bei Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
bei Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
bei NAPS2.Scan.ScanPerformer.<performscan>d__7.MoveNext()</performscan></scan>
errorlog.txt
2021-01-17 13:42:46.2730 Error cleaning up worker System.ComponentModel.Win32Exception (0x80004005): Zugriff verweigert
bei System.Diagnostics.Process.Kill()
bei NAPS2.Worker.WorkerContext.Dispose()
2021-01-17 13:42:46.3109 Ein Fehler ist mit dem Scanner-Treiber aufgetreten. System.ServiceModel.CommunicationException: Der Server hat keine sinnvolle Antwort gegeben; dies kann durch einen nicht übereinstimmenden Vertrag, ein vorzeitiges Herunterfahren der Sitzung oder durch einen internen Serverfehler verursacht sein.
bei Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
bei Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
bei NAPS2.Scan.ScanDriverBase.<>c__DisplayClass30_0.<<scan>b__0>d.MoveNext()</scan>
My profile settings: see 04 Profile Settings 1.jpg

Advanced profile settings: see 05 Profile Settings 2 advanced.jpg

This is a „dual“ duplex scanner. With 2 scan-sensors it scans the front and back simultaneously. Perhaps this is a timing issue? Because the front page and back page are transmitted simultaneously or immediately one after the other?
This problem occures not with every scan, but very often.
There is NO error in the Windows Event Viewer: "Windows Logs" -> "Application".
Same problem if naps2.exe is executed as administrator.
Same problem whether the back of the page is empty or not.
Scanner: Lexmark MC3426adw. Brand new. Released in 2020.
I have installed the newest TWAIN driver.
I have deinstalled and reinstalled the TWAIN driver and NAPS2.
„WIA“ seems to work, but has other disadvantages. So I would prefer the TWAIN driver.
„Use native UI“ seems to work, but I want to get rid of this crappy Lexmark software.
Other scan programs seem to work, but I would prefer NAPS2 because it is really the best scanner program ever
Perhaps this problem could be related to: https://sourceforge.net/p/naps2/tickets/620/
Thank you for your help and this really awesome program!
Hi,
I had the same problem and solved it by setting NAPS2 to use native UI, when scanning in duplex mode.
For that, I made a batch script that creates 6 profiles for scanning, being 3 in color mode (duplex, simplex with ADF and simplex using the reading glass) and other 3 in grayscale mode.
Also, this script creates new profiles in the native UI.
While not the best solution, it only takes one additional click on the "scan" button in the native UI.
@echo off
taskkill /fi "imagename eq NAPS2.exe"
echo Windows Registry Editor Version 5.00 > lexmark_pofiles.reg
echo [HKEY_CURRENT_USER\Software\Lexmark\NetworkTwain] >> lexmark_pofiles.reg
echo "DirectScan"=dword:00000001 >> lexmark_pofiles.reg
echo [HKEY_CURRENT_USER\Software\Lexmark\NetworkTwain\Presets] >> lexmark_pofiles.reg
echo "LastPreset"="Color - Duplex" >> lexmark_pofiles.reg
echo [HKEY_CURRENT_USER\Software\Lexmark\NetworkTwain\Presets\UserPresets] >> lexmark_pofiles.reg
echo "DefaultPreset"="Color - Duplex" >> lexmark_pofiles.reg
echo [-HKEY_CURRENT_USER\Software\Lexmark\NetworkTwain\Presets\FactoryPresets\OCR] >> lexmark_pofiles.reg
echo [-HKEY_CURRENT_USER\Software\Lexmark\NetworkTwain\Presets\FactoryPresets\Photo] >> lexmark_pofiles.reg
echo [-HKEY_CURRENT_USER\Software\Lexmark\NetworkTwain\Presets\FactoryPresets\Text] >> lexmark_pofiles.reg
echo [-HKEY_CURRENT_USER\Software\Lexmark\NetworkTwain\Presets\FactoryPresets\Text/Graphics] >> lexmark_pofiles.reg
echo [-HKEY_CURRENT_USER\Software\Lexmark\NetworkTwain\Presets\UserPresets\Grayscale - One side - ADF] >> lexmark_pofiles.reg
echo [-HKEY_CURRENT_USER\Software\Lexmark\NetworkTwain\Presets\UserPresets\Grayscale - One side - Glass] >> lexmark_pofiles.reg
echo [-HKEY_CURRENT_USER\Software\Lexmark\NetworkTwain\Presets\UserPresets\Color - One side - ADF] >> lexmark_pofiles.reg
echo [-HKEY_CURRENT_USER\Software\Lexmark\NetworkTwain\Presets\UserPresets\Color - One side - Glass] >> lexmark_pofiles.reg
echo [HKEY_CURRENT_USER\Software\Lexmark\NetworkTwain\Presets\UserPresets\Color - Duplex] >> lexmark_pofiles.reg
echo "ContentType"=dword:00000003 >> lexmark_pofiles.reg
echo "Resolution"=dword:000000c8 >> lexmark_pofiles.reg
echo "ColorDepth"=dword:00000018 >> lexmark_pofiles.reg
echo "PaperSize"=dword:00000004 >> lexmark_pofiles.reg
echo "ScanSource"=dword:00000001 >> lexmark_pofiles.reg
echo "Orientation"=dword:00000000 >> lexmark_pofiles.reg
echo "Duplex"=dword:00000001 >> lexmark_pofiles.reg
echo "MirrorImage"=dword:00000000 >> lexmark_pofiles.reg
echo "NegativeImage"=dword:00000000 >> lexmark_pofiles.reg
echo "Brightness"=dword:00000005 >> lexmark_pofiles.reg
echo "Contrast"=dword:00000000 >> lexmark_pofiles.reg
echo "BackgroundRemoval"=dword:00000000 >> lexmark_pofiles.reg
echo "BackGroundRemovalAuto"=dword:00000000 >> lexmark_pofiles.reg
echo "Threshold"=dword:00000080 >> lexmark_pofiles.reg
echo "ColorDropout"=dword:00000000 >> lexmark_pofiles.reg
echo "Descreen"=dword:00000000 >> lexmark_pofiles.reg
echo "ColorBalanceRed"=dword:00000000 >> lexmark_pofiles.reg
echo "ColorBalanceGreen"=dword:00000000 >> lexmark_pofiles.reg
echo "ColorBalanceBlue"=dword:00000000 >> lexmark_pofiles.reg
echo "Temperature"=dword:00000000 >> lexmark_pofiles.reg
echo "Sharpness"=dword:00000003 >> lexmark_pofiles.reg
echo "OriginalType"=dword:00000000 >> lexmark_pofiles.reg
echo "TopLeftX"=dword:00000000 >> lexmark_pofiles.reg
echo "BottomRightX"=dword:0000067a >> lexmark_pofiles.reg
echo "TopLeftY"=dword:00000000 >> lexmark_pofiles.reg
echo "BottomRightY"=dword:00000923 >> lexmark_pofiles.reg
echo "BlankPageRemoval"=dword:00000001 >> lexmark_pofiles.reg
echo [HKEY_CURRENT_USER\Software\Lexmark\NetworkTwain\Presets\UserPresets\Grayscale - Duplex] >> lexmark_pofiles.reg
echo "ContentType"=dword:00000003 >> lexmark_pofiles.reg
echo "Resolution"=dword:000000c8 >> lexmark_pofiles.reg
echo "ColorDepth"=dword:00000008 >> lexmark_pofiles.reg
echo "PaperSize"=dword:00000004 >> lexmark_pofiles.reg
echo "ScanSource"=dword:00000001 >> lexmark_pofiles.reg
echo "Orientation"=dword:00000000 >> lexmark_pofiles.reg
echo "Duplex"=dword:00000001 >> lexmark_pofiles.reg
echo "MirrorImage"=dword:00000000 >> lexmark_pofiles.reg
echo "NegativeImage"=dword:00000000 >> lexmark_pofiles.reg
echo "Brightness"=dword:00000005 >> lexmark_pofiles.reg
echo "Contrast"=dword:00000000 >> lexmark_pofiles.reg
echo "BackgroundRemoval"=dword:00000000 >> lexmark_pofiles.reg
echo "BackGroundRemovalAuto"=dword:00000000 >> lexmark_pofiles.reg
echo "Threshold"=dword:00000080 >> lexmark_pofiles.reg
echo "ColorDropout"=dword:00000000 >> lexmark_pofiles.reg
echo "Descreen"=dword:00000000 >> lexmark_pofiles.reg
echo "ColorBalanceRed"=dword:00000000 >> lexmark_pofiles.reg
echo "ColorBalanceGreen"=dword:00000000 >> lexmark_pofiles.reg
echo "ColorBalanceBlue"=dword:00000000 >> lexmark_pofiles.reg
echo "Temperature"=dword:00000000 >> lexmark_pofiles.reg
echo "Sharpness"=dword:00000003 >> lexmark_pofiles.reg
echo "OriginalType"=dword:00000000 >> lexmark_pofiles.reg
echo "TopLeftX"=dword:00000000 >> lexmark_pofiles.reg
echo "BottomRightX"=dword:0000067a >> lexmark_pofiles.reg
echo "TopLeftY"=dword:00000000 >> lexmark_pofiles.reg
echo "BottomRightY"=dword:00000923 >> lexmark_pofiles.reg
echo "BlankPageRemoval"=dword:00000001 >> lexmark_pofiles.reg
reg import lexmark_pofiles.reg
del lexmark_pofiles.reg
for /f "tokens=1,2,3 delims=/" %%a in ("%date%") do set timestamp=%%c%%b%%a
for /f "tokens=1,2 delims=:" %%d in ("%time%") do set timestamp=%timestamp%%%d%%e
if exist %appdata%\NAPS2\profiles.xml (
move %appdata%\NAPS2\profiles.xml %appdata%\NAPS2\profiles_%timestamp%.xml
)
echo ^<?xml version="1.0"?^>> %appdata%\NAPS2\profiles.xml
echo ^<arrayofscanprofile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ^="">>> %appdata%\NAPS2\profiles.xml
echo ^<scanprofile^>>> %appdata%\NAPS2\profiles.xml
echo ^<device^>>> %appdata%\NAPS2\profiles.xml
echo ^<id^>Lexmark Network TWAIN Scan^</id^>>> %appdata%\NAPS2\profiles.xml
echo ^<name^>Lexmark Network TWAIN Scan^</name^>>> %appdata%\NAPS2\profiles.xml
echo ^</device^>>> %appdata%\NAPS2\profiles.xml
echo ^<drivername^>twain^</drivername^>>> %appdata%\NAPS2\profiles.xml
echo ^<displayname^>Lexmark - Duplex^</displayname^>>> %appdata%\NAPS2\profiles.xml
echo ^<iconid^>0^</iconid^>>> %appdata%\NAPS2\profiles.xml
echo ^<maxquality^>false^</maxquality^>>> %appdata%\NAPS2\profiles.xml
echo ^<isdefault^>false^</isdefault^>>> %appdata%\NAPS2\profiles.xml
echo ^<version^>2^</version^>>> %appdata%\NAPS2\profiles.xml
echo ^<usenativeui^>false^</usenativeui^>>> %appdata%\NAPS2\profiles.xml
echo ^<afterscanscale^>OneToOne^</afterscanscale^>>> %appdata%\NAPS2\profiles.xml
echo ^<brightness^>0^</brightness^>>> %appdata%\NAPS2\profiles.xml
echo ^<contrast^>0^</contrast^>>> %appdata%\NAPS2\profiles.xml
echo ^<bitdepth^>C24Bit^</bitdepth^>>> %appdata%\NAPS2\profiles.xml
echo ^<pagealign^>Right^</pagealign^>>> %appdata%\NAPS2\profiles.xml
echo ^<pagesize^>A4^</pagesize^>>> %appdata%\NAPS2\profiles.xml
echo ^<resolution^>Dpi200^</resolution^>>> %appdata%\NAPS2\profiles.xml
echo ^<papersource^>Duplex^</papersource^>>> %appdata%\NAPS2\profiles.xml
echo ^<enableautosave^>false^</enableautosave^>>> %appdata%\NAPS2\profiles.xml
echo ^<quality^>15^</quality^>>> %appdata%\NAPS2\profiles.xml
echo ^<autodeskew^>true^</autodeskew^>>> %appdata%\NAPS2\profiles.xml
echo ^<brightnesscontrastafterscan^>false^</brightnesscontrastafterscan^>>> %appdata%\NAPS2\profiles.xml
echo ^<forcepagesize^>false^</forcepagesize^>>> %appdata%\NAPS2\profiles.xml
echo ^<forcepagesizecrop^>false^</forcepagesizecrop^>>> %appdata%\NAPS2\profiles.xml
echo ^<twainimpl^>Legacy^</twainimpl^>>> %appdata%\NAPS2\profiles.xml
echo ^<excludeblankpages^>true^</excludeblankpages^>>> %appdata%\NAPS2\profiles.xml
echo ^<blankpagewhitethreshold^>95^</blankpagewhitethreshold^>>> %appdata%\NAPS2\profiles.xml
echo ^<blankpagecoveragethreshold^>1^</blankpagecoveragethreshold^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiaoffsetwidth^>false^</wiaoffsetwidth^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiaretryonfailure^>false^</wiaretryonfailure^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiadelaybetweenscans^>false^</wiadelaybetweenscans^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiadelaybetweenscansseconds^>2^</wiadelaybetweenscansseconds^>>> %appdata%\NAPS2\profiles.xml
echo ^<flipduplexedpages^>false^</flipduplexedpages^>>> %appdata%\NAPS2\profiles.xml
echo ^</scanprofile^>>> %appdata%\NAPS2\profiles.xml
echo ^<scanprofile^>>> %appdata%\NAPS2\profiles.xml
echo ^<device^>>> %appdata%\NAPS2\profiles.xml
echo ^<id^>Lexmark Network TWAIN Scan^</id^>>> %appdata%\NAPS2\profiles.xml
echo ^<name^>Lexmark Network TWAIN Scan^</name^>>> %appdata%\NAPS2\profiles.xml
echo ^</device^>>> %appdata%\NAPS2\profiles.xml
echo ^<drivername^>twain^</drivername^>>> %appdata%\NAPS2\profiles.xml
echo ^<displayname^>Color - One side (ADF)^</displayname^>>> %appdata%\NAPS2\profiles.xml
echo ^<iconid^>0^</iconid^>>> %appdata%\NAPS2\profiles.xml
echo ^<maxquality^>false^</maxquality^>>> %appdata%\NAPS2\profiles.xml
echo ^<isdefault^>false^</isdefault^>>> %appdata%\NAPS2\profiles.xml
echo ^<version^>2^</version^>>> %appdata%\NAPS2\profiles.xml
echo ^<usenativeui^>false^</usenativeui^>>> %appdata%\NAPS2\profiles.xml
echo ^<afterscanscale^>OneToOne^</afterscanscale^>>> %appdata%\NAPS2\profiles.xml
echo ^<brightness^>0^</brightness^>>> %appdata%\NAPS2\profiles.xml
echo ^<contrast^>0^</contrast^>>> %appdata%\NAPS2\profiles.xml
echo ^<bitdepth^>C24Bit^</bitdepth^>>> %appdata%\NAPS2\profiles.xml
echo ^<pagealign^>Right^</pagealign^>>> %appdata%\NAPS2\profiles.xml
echo ^<pagesize^>A4^</pagesize^>>> %appdata%\NAPS2\profiles.xml
echo ^<resolution^>Dpi200^</resolution^>>> %appdata%\NAPS2\profiles.xml
echo ^<papersource^>Feeder^</papersource^>>> %appdata%\NAPS2\profiles.xml
echo ^<enableautosave^>false^</enableautosave^>>> %appdata%\NAPS2\profiles.xml
echo ^<quality^>15^</quality^>>> %appdata%\NAPS2\profiles.xml
echo ^<autodeskew^>true^</autodeskew^>>> %appdata%\NAPS2\profiles.xml
echo ^<brightnesscontrastafterscan^>false^</brightnesscontrastafterscan^>>> %appdata%\NAPS2\profiles.xml
echo ^<forcepagesize^>false^</forcepagesize^>>> %appdata%\NAPS2\profiles.xml
echo ^<forcepagesizecrop^>false^</forcepagesizecrop^>>> %appdata%\NAPS2\profiles.xml
echo ^<twainimpl^>Default^</twainimpl^>>> %appdata%\NAPS2\profiles.xml
echo ^<excludeblankpages^>false^</excludeblankpages^>>> %appdata%\NAPS2\profiles.xml
echo ^<blankpagewhitethreshold^>95^</blankpagewhitethreshold^>>> %appdata%\NAPS2\profiles.xml
echo ^<blankpagecoveragethreshold^>1^</blankpagecoveragethreshold^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiaoffsetwidth^>false^</wiaoffsetwidth^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiaretryonfailure^>false^</wiaretryonfailure^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiadelaybetweenscans^>false^</wiadelaybetweenscans^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiadelaybetweenscansseconds^>2^</wiadelaybetweenscansseconds^>>> %appdata%\NAPS2\profiles.xml
echo ^<flipduplexedpages^>false^</flipduplexedpages^>>> %appdata%\NAPS2\profiles.xml
echo ^</scanprofile^>>> %appdata%\NAPS2\profiles.xml
echo ^<scanprofile^>>> %appdata%\NAPS2\profiles.xml
echo ^<device^>>> %appdata%\NAPS2\profiles.xml
echo ^<id^>Lexmark Network TWAIN Scan^</id^>>> %appdata%\NAPS2\profiles.xml
echo ^<name^>Lexmark Network TWAIN Scan^</name^>>> %appdata%\NAPS2\profiles.xml
echo ^</device^>>> %appdata%\NAPS2\profiles.xml
echo ^<drivername^>twain^</drivername^>>> %appdata%\NAPS2\profiles.xml
echo ^<displayname^>Color - One side (Glass)^</displayname^>>> %appdata%\NAPS2\profiles.xml
echo ^<iconid^>0^</iconid^>>> %appdata%\NAPS2\profiles.xml
echo ^<maxquality^>false^</maxquality^>>> %appdata%\NAPS2\profiles.xml
echo ^<isdefault^>false^</isdefault^>>> %appdata%\NAPS2\profiles.xml
echo ^<version^>2^</version^>>> %appdata%\NAPS2\profiles.xml
echo ^<usenativeui^>false^</usenativeui^>>> %appdata%\NAPS2\profiles.xml
echo ^<afterscanscale^>OneToOne^</afterscanscale^>>> %appdata%\NAPS2\profiles.xml
echo ^<brightness^>0^</brightness^>>> %appdata%\NAPS2\profiles.xml
echo ^<contrast^>0^</contrast^>>> %appdata%\NAPS2\profiles.xml
echo ^<bitdepth^>C24Bit^</bitdepth^>>> %appdata%\NAPS2\profiles.xml
echo ^<pagealign^>Right^</pagealign^>>> %appdata%\NAPS2\profiles.xml
echo ^<pagesize^>A4^</pagesize^>>> %appdata%\NAPS2\profiles.xml
echo ^<resolution^>Dpi200^</resolution^>>> %appdata%\NAPS2\profiles.xml
echo ^<papersource^>Glass^</papersource^>>> %appdata%\NAPS2\profiles.xml
echo ^<enableautosave^>false^</enableautosave^>>> %appdata%\NAPS2\profiles.xml
echo ^<quality^>15^</quality^>>> %appdata%\NAPS2\profiles.xml
echo ^<autodeskew^>true^</autodeskew^>>> %appdata%\NAPS2\profiles.xml
echo ^<brightnesscontrastafterscan^>false^</brightnesscontrastafterscan^>>> %appdata%\NAPS2\profiles.xml
echo ^<forcepagesize^>false^</forcepagesize^>>> %appdata%\NAPS2\profiles.xml
echo ^<forcepagesizecrop^>false^</forcepagesizecrop^>>> %appdata%\NAPS2\profiles.xml
echo ^<twainimpl^>Default^</twainimpl^>>> %appdata%\NAPS2\profiles.xml
echo ^<excludeblankpages^>false^</excludeblankpages^>>> %appdata%\NAPS2\profiles.xml
echo ^<blankpagewhitethreshold^>70^</blankpagewhitethreshold^>>> %appdata%\NAPS2\profiles.xml
echo ^<blankpagecoveragethreshold^>25^</blankpagecoveragethreshold^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiaoffsetwidth^>false^</wiaoffsetwidth^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiaretryonfailure^>false^</wiaretryonfailure^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiadelaybetweenscans^>false^</wiadelaybetweenscans^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiadelaybetweenscansseconds^>2^</wiadelaybetweenscansseconds^>>> %appdata%\NAPS2\profiles.xml
echo ^<flipduplexedpages^>false^</flipduplexedpages^>>> %appdata%\NAPS2\profiles.xml
echo ^</scanprofile^>>> %appdata%\NAPS2\profiles.xml
echo ^<scanprofile^>>> %appdata%\NAPS2\profiles.xml
echo ^<device^>>> %appdata%\NAPS2\profiles.xml
echo ^<id^>Lexmark Network TWAIN Scan^</id^>>> %appdata%\NAPS2\profiles.xml
echo ^<name^>Lexmark Network TWAIN Scan^</name^>>> %appdata%\NAPS2\profiles.xml
echo ^</device^>>> %appdata%\NAPS2\profiles.xml
echo ^<drivername^>twain^</drivername^>>> %appdata%\NAPS2\profiles.xml
echo ^<displayname^>Grayscale - One side (ADF)^</displayname^>>> %appdata%\NAPS2\profiles.xml
echo ^<iconid^>0^</iconid^>>> %appdata%\NAPS2\profiles.xml
echo ^<maxquality^>false^</maxquality^>>> %appdata%\NAPS2\profiles.xml
echo ^<isdefault^>false^</isdefault^>>> %appdata%\NAPS2\profiles.xml
echo ^<version^>2^</version^>>> %appdata%\NAPS2\profiles.xml
echo ^<usenativeui^>false^</usenativeui^>>> %appdata%\NAPS2\profiles.xml
echo ^<afterscanscale^>OneToOne^</afterscanscale^>>> %appdata%\NAPS2\profiles.xml
echo ^<brightness^>0^</brightness^>>> %appdata%\NAPS2\profiles.xml
echo ^<contrast^>0^</contrast^>>> %appdata%\NAPS2\profiles.xml
echo ^<bitdepth^>Grayscale^</bitdepth^>>> %appdata%\NAPS2\profiles.xml
echo ^<pagealign^>Right^</pagealign^>>> %appdata%\NAPS2\profiles.xml
echo ^<pagesize^>A4^</pagesize^>>> %appdata%\NAPS2\profiles.xml
echo ^<resolution^>Dpi200^</resolution^>>> %appdata%\NAPS2\profiles.xml
echo ^<papersource^>Feeder^</papersource^>>> %appdata%\NAPS2\profiles.xml
echo ^<enableautosave^>false^</enableautosave^>>> %appdata%\NAPS2\profiles.xml
echo ^<quality^>15^</quality^>>> %appdata%\NAPS2\profiles.xml
echo ^<autodeskew^>true^</autodeskew^>>> %appdata%\NAPS2\profiles.xml
echo ^<brightnesscontrastafterscan^>false^</brightnesscontrastafterscan^>>> %appdata%\NAPS2\profiles.xml
echo ^<forcepagesize^>false^</forcepagesize^>>> %appdata%\NAPS2\profiles.xml
echo ^<forcepagesizecrop^>false^</forcepagesizecrop^>>> %appdata%\NAPS2\profiles.xml
echo ^<twainimpl^>Default^</twainimpl^>>> %appdata%\NAPS2\profiles.xml
echo ^<excludeblankpages^>false^</excludeblankpages^>>> %appdata%\NAPS2\profiles.xml
echo ^<blankpagewhitethreshold^>70^</blankpagewhitethreshold^>>> %appdata%\NAPS2\profiles.xml
echo ^<blankpagecoveragethreshold^>25^</blankpagecoveragethreshold^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiaoffsetwidth^>false^</wiaoffsetwidth^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiaretryonfailure^>false^</wiaretryonfailure^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiadelaybetweenscans^>false^</wiadelaybetweenscans^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiadelaybetweenscansseconds^>2^</wiadelaybetweenscansseconds^>>> %appdata%\NAPS2\profiles.xml
echo ^<flipduplexedpages^>false^</flipduplexedpages^>>> %appdata%\NAPS2\profiles.xml
echo ^</scanprofile^>>> %appdata%\NAPS2\profiles.xml
echo ^<scanprofile^>>> %appdata%\NAPS2\profiles.xml
echo ^<device^>>> %appdata%\NAPS2\profiles.xml
echo ^<id^>Lexmark Network TWAIN Scan^</id^>>> %appdata%\NAPS2\profiles.xml
echo ^<name^>Lexmark Network TWAIN Scan^</name^>>> %appdata%\NAPS2\profiles.xml
echo ^</device^>>> %appdata%\NAPS2\profiles.xml
echo ^<drivername^>twain^</drivername^>>> %appdata%\NAPS2\profiles.xml
echo ^<displayname^>Grayscale - One side (Glass)^</displayname^>>> %appdata%\NAPS2\profiles.xml
echo ^<iconid^>0^</iconid^>>> %appdata%\NAPS2\profiles.xml
echo ^<maxquality^>false^</maxquality^>>> %appdata%\NAPS2\profiles.xml
echo ^<isdefault^>false^</isdefault^>>> %appdata%\NAPS2\profiles.xml
echo ^<version^>2^</version^>>> %appdata%\NAPS2\profiles.xml
echo ^<usenativeui^>false^</usenativeui^>>> %appdata%\NAPS2\profiles.xml
echo ^<afterscanscale^>OneToOne^</afterscanscale^>>> %appdata%\NAPS2\profiles.xml
echo ^<brightness^>0^</brightness^>>> %appdata%\NAPS2\profiles.xml
echo ^<contrast^>0^</contrast^>>> %appdata%\NAPS2\profiles.xml
echo ^<bitdepth^>Grayscale^</bitdepth^>>> %appdata%\NAPS2\profiles.xml
echo ^<pagealign^>Right^</pagealign^>>> %appdata%\NAPS2\profiles.xml
echo ^<pagesize^>A4^</pagesize^>>> %appdata%\NAPS2\profiles.xml
echo ^<resolution^>Dpi200^</resolution^>>> %appdata%\NAPS2\profiles.xml
echo ^<papersource^>Glass^</papersource^>>> %appdata%\NAPS2\profiles.xml
echo ^<enableautosave^>false^</enableautosave^>>> %appdata%\NAPS2\profiles.xml
echo ^<quality^>15^</quality^>>> %appdata%\NAPS2\profiles.xml
echo ^<autodeskew^>true^</autodeskew^>>> %appdata%\NAPS2\profiles.xml
echo ^<brightnesscontrastafterscan^>false^</brightnesscontrastafterscan^>>> %appdata%\NAPS2\profiles.xml
echo ^<forcepagesize^>false^</forcepagesize^>>> %appdata%\NAPS2\profiles.xml
echo ^<forcepagesizecrop^>false^</forcepagesizecrop^>>> %appdata%\NAPS2\profiles.xml
echo ^<twainimpl^>Default^</twainimpl^>>> %appdata%\NAPS2\profiles.xml
echo ^<excludeblankpages^>false^</excludeblankpages^>>> %appdata%\NAPS2\profiles.xml
echo ^<blankpagewhitethreshold^>70^</blankpagewhitethreshold^>>> %appdata%\NAPS2\profiles.xml
echo ^<blankpagecoveragethreshold^>25^</blankpagecoveragethreshold^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiaoffsetwidth^>false^</wiaoffsetwidth^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiaretryonfailure^>false^</wiaretryonfailure^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiadelaybetweenscans^>false^</wiadelaybetweenscans^>>> %appdata%\NAPS2\profiles.xml
echo ^<wiadelaybetweenscansseconds^>2^</wiadelaybetweenscansseconds^>>> %appdata%\NAPS2\profiles.xml
echo ^<flipduplexedpages^>false^</flipduplexedpages^>>> %appdata%\NAPS2\profiles.xml
echo ^</scanprofile^>>> %appdata%\NAPS2\profiles.xml
echo ^>> %appdata%\NAPS2\profiles.xml</arrayofscanprofile>