Question
How to change Image Enhancement Profile at import time?
Answer
To apply the Image Enhancement Profile, please use ApplyImageEnhancementProfile (name: string)
method defined on the IPage interface. This method applies the set enhancement profile to an image. If applying a profile creates new pages, they will be added to a document after the current page.
The image enhancement profile can be applied to an image on the custom script stage. To implement this stage, please perform the steps described below:
- Create Script stage by clicking Stage… and place it before the Recognition
- Click Edit…
- Select Document processing as a Type and click Edit script…
- Paste the following code:
IPages pages = Document.Pages;
foreach (IPage page in pages){
//Specify the processing profile name in the brackets
page.ApplyImageEnhancementProfile("newProfile");
}
Comments
0 comments
Please sign in to leave a comment.