Thank you for your patience. The sample you requested is ready. You can test it in action and investigate how it works on
our live samples website by using this link:
In this sample was
implemented complex logic, to show two ways of signing the document:
1. 1. If user not checked
checkbox “Sign document with Widget ” the document for signing will be shown in iframe. Also to this
document programmatically will be added signature field.
1.1 After signing Api server will send callback to
1.2 Controller which will be triggered by callback
will get data from it and save signed file GUID to temporary .txt file.
template of sample present JS which send Ajax request to controller which check
if temporary .txt file is created.
1.4 If file was created controller will read
signed document GUID from it and return it to Ajax request
1.5 If Ajax was successful will be opened popup
window with signed document in iframe
2. 2. If user check checkbox
“Sign document with Widget ” will be triggered JS functional of GroupDocs Signature widget.
And document will be signed via this widget.
2.1 User form will be changed so that the user can
select document for signing and signature file (jpeg, gif, png image)
2.2 Signature file will be added to document for
signing and transferred to controller for sending to Api server.
2.3 If signing was successful widget will open
popup window with signed document in iframe
You can investigate code of this sample by using “Docs for this
sample” link in top right side of sample page.
You can download all GroupDocs PHP SDK samples from GitHub
If we can help you
more please feel free to contact us via support forum or email.