How to specifiy dimensions for scanning in ASP.NET MVC + HTML5 (using Local Service)
Posted: Wed Jan 10, 2018 3:10 pm
Hi,
I'm having some troubles so I thought I could reach you guys for some help.
I've been using theTWAIN .NET SDK product on a ASP.NET MVC project using the
ASP.NET MVC + HTML5 approach (using Local Service) and I'm having some troubles with
the scanning process.
If I choose to scan using the Scanner native UI, I have always the preview tool and I always
have the chance to define the scan area. Our scanner allows to scan documents up to A3 size.
Still, when I try to scan documents withou the scanner UI, it seems that the documents are
always scanned in the A4 portrait size; therefore if I try to scan a document in A4 landscape
or A3, it will always end up being cropped.
I've noticed in the online documentation (e.g., https://www.vintasoft.com/docs/vstwain- ... _Disk.html) these two lines of code:
' set the inches as unit of measure
device.UnitOfMeasure = UnitOfMeasure.Inches
' set the desired resolution of acquired images
device.Resolution = New Resolution(300.0F, 300.0F)
Using the ASP.NET MVC + HTML5 approach is there any way of specifying these same properties
(or any other way) in javascript?
Thanks in advance.
kind regards,
Vítor Varalonga
Ciberbit, S.A.
I'm having some troubles so I thought I could reach you guys for some help.
I've been using theTWAIN .NET SDK product on a ASP.NET MVC project using the
ASP.NET MVC + HTML5 approach (using Local Service) and I'm having some troubles with
the scanning process.
If I choose to scan using the Scanner native UI, I have always the preview tool and I always
have the chance to define the scan area. Our scanner allows to scan documents up to A3 size.
Still, when I try to scan documents withou the scanner UI, it seems that the documents are
always scanned in the A4 portrait size; therefore if I try to scan a document in A4 landscape
or A3, it will always end up being cropped.
I've noticed in the online documentation (e.g., https://www.vintasoft.com/docs/vstwain- ... _Disk.html) these two lines of code:
' set the inches as unit of measure
device.UnitOfMeasure = UnitOfMeasure.Inches
' set the desired resolution of acquired images
device.Resolution = New Resolution(300.0F, 300.0F)
Using the ASP.NET MVC + HTML5 approach is there any way of specifying these same properties
(or any other way) in javascript?
Thanks in advance.
kind regards,
Vítor Varalonga
Ciberbit, S.A.