I need to write the JS code that allow me to
create text field with the document code value
every time after I scanned the document page.
In order to scan the document I am using Button with
Execute a menu item "File>Create PDF>From Scanner".
Is it possible to accomplish?