Create Document
Command property:
Asynchronous command.
The Interface Status must be Ready to perform this operation.
If the status is different than Ready, the system reply with:
<command valid="false" error="Laser module not ready" />
Command action:
Create a new passport document, with the specified layout , in SamLight, with the specified data.
Before start the document creation, all existing layout are deleted.
Syntax:
<command name="createdocument">
[XML DATA]
</command>
Reply:
<command valid="true" />
During the command execution the Interface Status goes to Creating.
When the command is executed, the system reply with:
<command name="CreateDocument" executed="true" >
If the document creation is done, the Interface Status goes to Ready.
If the command execution fails, the system reply with:
<command name="CreateDocument" executed="false" error="Error creating document. Error on entity: [Entity name]" >
If the document creation fails, the Interface Status goes to Error.
Command purpose:
This command is used to create a new document.