Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
Hi,
In Windchill User Creation Wizard Option to Upload the Electronic Signature Image.
But there's no Use Cases for this Image or I'm not aware.
Anyone mention the use case of this?
Solved! Go to Solution.
Hello,
You have to write own code to achieve that needs.
The example how to use API to get signature picture is
WTUser user = (WTUser) SessionHelper.getPrincipal(); // find user (in this example only logged user is used it is just for this example)
StandardOrganizationServicesManager stOrgmanager = StandardOrganizationServicesManager.newStandardOrganizationServicesManager();// create service manager to get signature
ElectronicSignature signature = stOrgmanager.getUserSignature(user); // get signature from user
ApplicationData adata = stOrgmanager.getUserSignatureApplicationData(signature); // get Application data where you can get picture of signature
Then you need to write a code to put the picture to existing PDF file in the system.
You can do it in a workflow but the workflow is limited to 4k characters in one robot.
PetrH
Hello,
There could be customization Use Case.
You can use this Signature image as a signature for Drawing PDF output in PostPublish process that the signature is printed to the PDF page from approver user in the last finished promotion request(Any change process object could be used as you wish :D).
In our case a customer's manufactures wanted "hand sign" on the drawings so that was a way how to solve it.
Best Regards
PetrH
Hi Helesic,
Thanks for the reply.
Can you hint me how to use this signature in Drawing PDF.
Thanks again.
Navku
Hello,
You have to write own code to achieve that needs.
The example how to use API to get signature picture is
WTUser user = (WTUser) SessionHelper.getPrincipal(); // find user (in this example only logged user is used it is just for this example)
StandardOrganizationServicesManager stOrgmanager = StandardOrganizationServicesManager.newStandardOrganizationServicesManager();// create service manager to get signature
ElectronicSignature signature = stOrgmanager.getUserSignature(user); // get signature from user
ApplicationData adata = stOrgmanager.getUserSignatureApplicationData(signature); // get Application data where you can get picture of signature
Then you need to write a code to put the picture to existing PDF file in the system.
You can do it in a workflow but the workflow is limited to 4k characters in one robot.
PetrH