You can test the Mac Edition either with our online demo or a simple sample page:
Test it with online demo
NOTE: After installing the plug-in, please quit and restart your browser. If you are using Safari 5.0, you need to run the browser in 32-bit mode.
Test it with a simple page
You can find and download the completed sample page in the attachment of this article.
OR, if you prefer to write your own, you can follow the steps below:-
Use TextEdit to create an HTML file. Add the basic HTML tags (html, head, body, etc…).Note: Please click here to learn How to Set Up TextEdit as an HTML or Plain Text Editor.
- Add the code below inside the body element of your HTML page:
<embed id="DynamicWebTWAIN" type="application/dynamicwebtwain-plugin" height="528" width="100%"></embed>This is the Dynamic Mac TWAIN plugin object. You can modify the id, height and width if needed, but do not change the type of the object.
- Then you can add some JavaScript code to control the plugin. Here is the sample to get the plugin object, set the configuration and acquire
image without UI:<script type="text/javascript" language="javascript">
WebTWAIN = document.embeds[0];//Get the object
WebTWAIN.SetViewMode(1,1); //View mode 1*1
WebTWAIN.IfDisableSourceAfterAcquire = true; //Disable source after acquire
WebTWAIN.SelectSource();//Show dialog to select the source
WebTWAIN.OpenSource();//Open the source
WebTWAIN.IfShowUI = false;//Hide the scanner UI
WebTWAIN.AcquireImage();//Scan
}
</script>
- Now, just double click the sample HTML page and you will be able to acquire images from the scanner in your browser.
FAQ
1. Where is the Mac Edition Plug-in installed?
The file will be installed to "/Library/Internet Plug-Ins/" or "/Users/<user>/Library/Internet Plug-Ins".

To remove the installed plug-in, you can just right click on it, and choose "Move to trash".
2. How to support all browsers in one scan page?
Dynamic Web TWAIN works with all mainstream browsers:
ActiveX Edition for Internet Explorer (32-bit & 64-bit) on Windows;
Plug-in Edition for Firefox, Chrome, Safari and Opera on Windows;
Mac Edition for Safari, Chrome, Firefox and Opera on Mac OS X.
To support all browsers, please refer to:
http://kb.dynamsoft.com/questions/635/How+to+support+multi+browsers+in+one+scan+page%3F
