How can we use barcode as Batch Seperator during ADF Scanning?

To use barcode as batch seperator during ADF Scanning and upload the scanned documents into different files on server in your web application, you can use ImageCapture Suite with the Barcode Reader add-on. You can find a simple sample in C# below.

Download Sample

In Scan.aspx:

<script language="javascript" type="text/javascript">

function DWObject_OnPostTransfer(){ // OnPostTransfer event will be triggered automatically after each paper scan

    DWObject.IfShowProgressBar = false;
    DWObject.ReadBarcode(DWObject.CurrentImageIndexInBuffer, 0);

 if(DWObject.BarcodeCount != 0) {  // if this doc contains barcode info, i.e. it is the Seperator, we will upload image index 0 ~ seperator index as a multiple page PDF file

 var currentTime = new Date();
 var hours = currentTime.getHours();
 var minutes = currentTime.getMinutes();
 var seconds = currentTime.getSeconds();   //  here we are using current time as PDF file name

    var strActionPage;
    var strHostIP;
    var CurrentPathName = unescape(location.pathname); // get current PathName in plain ASCII
    var CurrentPath = CurrentPathName.substring(0, CurrentPathName.lastIndexOf("/") + 1);
    strActionPage = CurrentPath + "imageupload.aspx"; //the ActionPage's file path

    strHostIP = "tserver"; //The host's IP or name
    DWObject.HTTPPort = 80;//location.port==""?80:location.port;

    DWObject.HTTPUploadAllThroughPostAsPDF(strHostIP,strActionPage, hours+"_"+minutes+"_"+seconds+".pdf");

    if (DWObject.ErrorCode != 0)
    alert(DWObject.ErrorString);

    DWObject.RemoveAllImages();  // remove all the scanned images from buffer after uploading them to the server

 }
}

</script>

imageupload.aspx:

<%@ Page Language="c#" AutoEventWireup="false" Debug="True"%>

<%
	HttpFileCollection files = HttpContext.Current.Request.Files;
	HttpPostedFile uploadfile = files["RemoteFile"];
	uploadfile.SaveAs(System.Web.HttpContext.Current.Request.MapPath(".") + "/" + uploadfile.FileName);
%>