The leading provider of version control solution and TWAIN SDK

How to install & use Dynamic Web TWAIN Mac Edition

You can test the Mac Edition either with our online demo or a simple sample page:

Test it with online demo

Please visit our online demo here. You will be prompted to download and install the plug-in, as shown below:


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:
  1. 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.

  2. 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.

  3. 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>

  4. 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 Editio
n
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




Article Details

Last Updated
9th o January, 2012

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF

User Opinions (0 votes)

No users have voted.

How would you rate this answer?



Thank you for rating this answer.

Related Articles

No related articles were found.

Attachments

Visitor Comments

No visitor comments posted. Post a comment

Post a comment

To post a comment for this article, simply complete the form below. Fields marked with an asterisk are required.
   Name:
   Email:
* Comment:
* Enter the code below:
 

Continue