Dev Center
Simply, you can use PageSize to set the page size to be used when acquiring images. Or you can leverage the negotiation capabilities functionality by following the steps mentioned below.
DWObject.getCapabilities(
function (result) {
for (var i = 0; i < result.length; i++) {
if (
result[i].capability.value ===
Dynamsoft.DWT.EnumDWT_Cap.ICAP_SUPPORTEDSIZES
)
sizes = result[i].values;
}
console.log(sizes);
},
function (error) {
console.log(error);
}
);
DWObject.setCapabilities(
{
exception: "ignore",
capabilities: [
{
capability: Dynamsoft.DWT.EnumDWT_Cap.ICAP_SUPPORTEDSIZES,
curValue: 1, // 1 means 'A4' in our case
exception: "fail",
},
],
},
function (result) {
console.log(result);
},
function (error) {
console.log(error);
}
);
A list of the values of various supported sizes can be found here. You can use the value for the curValue property.
latest version