"Invalid Characters into the path"
Posted: Thu Mar 02, 2023 1:17 pm
Hi Alex,
thank to you i managed to make the Web Scanning working, but when i call the acquiredImages.saveImages() method to save the file, i get an alert "Invalid Characters into the path". Honestly i don't understand to which characters is the alert referring.
Here is a part of the code with the method i call :
Best regards,
Luigi
thank to you i managed to make the Web Scanning working, but when i call the acquiredImages.saveImages() method to save the file, i get an alert "Invalid Characters into the path". Honestly i don't understand to which characters is the alert referring.
Here is a part of the code with the method i call :
Code: Select all
switch (acquireModalState) {
case 2: // image is acquired
// get acquired image
var acquiredImage = acquireModalResult.get_AcquiredImage();
// add acquired image to the collection of acquired images
acquiredImages.add(acquiredImage);
// save acquired image to "result.pdf" file
console.log(acquiredImage);
acquiredImages.saveImages("C:\\Users\luigi\Desktop\PDF\result"+savedImageCount+".pdf", false, [ acquiredImage.get_Id() ]);
savedImageCount = savedImageCount + 1;
break;
case 4: // scan is failed
alert(acquireModalResult.get_ErrorMessage());
break;
case 9: // scan is finished
break;
}
Luigi