TWAIN ActiveX Control, Plug-in, Scanner SDK, Component, HTTP Control/SDK

Dynamsoft TWAIN Products

Support Community for TWAIN Control/Component/SDK for Scanning Solutions
* Login   * Register
* FAQ    * Search

It is currently Sun May 20, 2012 1:43 pm




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Blackout Text
PostPosted: Tue Aug 30, 2011 5:15 am 
Offline

Joined: Tue Aug 16, 2011 1:00 pm
Posts: 6
I have a requirement in that users need to blackout certain confidential information on scanned PDF output generated by WebTWAIN. Is there anyway to allow a user to blackout certain sections of a document once it has been scanned or is this somehting I am going to have to go outside of WebTWAIN to create?

Thanks...


Top
 Profile  
 
 Post subject: Re: Blackout Text
PostPosted: Tue Aug 30, 2011 6:04 am 
Offline

Joined: Tue Aug 16, 2011 1:00 pm
Posts: 6
After looking further into this issue, I would assume that the functions outlined below provided by WebTWAIN would allow the above mentioned functionality. However, I am having some trouble in identifying the selected area. Can you please provide me with an example of how these functions would be used to select an area and set the background color?

Thanks...

---------------

ObjectName.Erase(short sImageIndex, Int32 iLeft, Int32 iTop, Int32 iRight, Int32 iBottom)

ObjectName. BackgroundFillColor


Top
 Profile  
 
 Post subject: Re: Blackout Text
PostPosted: Tue Aug 30, 2011 7:34 am 
Offline

Joined: Tue Aug 16, 2011 1:00 pm
Posts: 6
I was able to work this out so I thought I would post a quick example here for reference:

var _index, left, right, top, bottom;

frmScan.DynamicWebTwain1.BackgroundFillColor = 000000;
frmScan.DynamicWebTwain1.Erase(_index, left, top, right, bottom);


<script language="javascript" type="text/javascript" event="OnImageAreaSelected(index, iLeft, iTop, iRight, iBottom)" for="DynamicWebTwain1">

_index = index;
top = iTop;
left = iLeft;
right = iRight;
bottom = iBottom;

</script>

<script language=javascript for=DynamicWebTwain1 event=OnImageAreaDeSelected(index)>

_index = null;
top = null;
left = null;
right = null;
botton = null;

</script>


Top
 Profile  
 
 Post subject: Re: Blackout Text
PostPosted: Wed Aug 31, 2011 7:52 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Hi m2mini,

Thanks for posting your solution here for reference. I am glad you have found the answer by yourself.

Should you have any further questions, please feel free to discuss here. Or, you can directly reach our support team at LiveChat:
www.dynamsoft.com/support/livehelp.aspx

Regards,

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

It is currently Sun May 20, 2012 1:43 pm


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Copyright © 2010 Dynamsoft Corporation. All Rights Reserved. | Knowledge Base | Source Control Blog