Save Signature Image from COTG

I would like to save the captured signature from a COTG document and then use this resulting image to sign each document in the associated PDF (contains multiple documents).

There might also be two signatures on the document, but essentially the template will be a PDF background with two signature spots. OL Connect would receive two documents, the Master PDF and the Associated PDF. The Master PDF would be sent to a tablet using COTG to collect the signature. The Associated PDF would not be sent through COTG, but we need to take the signature(s) from the Master PDF and apply to each document within the Associated PDF.

I expect this to be possible but I do not think that this will be easy or, at least, as easy to discuss a possible solution the forum. Unfortunately, I do also not have a working example available.

How far have you got so far yourself? For example, were you able to parse the signature to workflow after adding a signature to- and submitting the COTG form?

At the moment, I’m getting this error when I attempt to download the document on Windows App COTG

Invalid URI: The format of the URI could not be determined

I’m running the COTG app on a different VMWare server than the VMWare server running OL Connect 2024.2. Previously I was trying to run the COTG app on the same VMWare server running OL Connect 2024.2, but it would not connect when attempting to download.

I upgraded from 2024.2.0 to Designer 2024.2.2.23270 and Workflow 2024.2.1.7137.
Thinking that it may have something to do with it, but still getting the same results.

Within the designer, I’m now getting error messages in the designer.

ERROR [16 Jan 2025 09:14:13,633][main] com.objectiflune.application.designer.shared.MessageDialogs.openError(MessageDialogs.java:-1) TypeError: $(...).removeClass(...).removeEmptyAttr is not a function (pagination.js:1048)
ERROR [15 Jan 2025 15:54:54,663][main] com.objectiflune.application.designer.shared.MessageDialogs.openError(MessageDialogs.java:-1) TypeError: $(...).resizableColumns is not a function (edit.js:402)

Thank you for reporting this.

Can you let us know when the first error message occurs specifically? Because I am able to reproduce the second error but not the first error, unfortunately.

Update: I have escalated this issue internally in the meanwhile (internal reference: SHARED-94706)

I notice it when switching between the Design and Preview tabs. The other thing I noticed is that after the error I can’t get the Source tab to display.

I saved my resources as 2024.1 and copied them over to my 2024.1 NFR instance and I don’t get the two new errors, but do get the Invalid URI: The format of the URI could not be determined error.

I’m wondering if this last error has something to do with placing the PDF as a dynamic image in the template?

After opening the template and datamapper.
Press on the Preview tab with no errors.
Press on the Design tab with this error.


Click OK and get this error.

Click Source and get this error.

Then the source just stays at…
image
Click on Design and get this error.
image

Thank you for providing the steps for reproducing the issue.

Do you also know when the below error was shown specifically?

ERROR [16 Jan 2025 09:14:13,633][main] com.objectiflune.application.designer.shared.MessageDialogs.openError(MessageDialogs.java:-1) TypeError: $(...).removeClass(...).removeEmptyAttr is not a function (pagination.js:1048)

The reason why I am asking is because this one is referring to a different file.

I’m not sure how to get this error reproduce. I can send you the designer logs
DesignerLogs.zip (16.6 KB)

The issue is currently being looked at (internal reference: SHARED-94706).

The workaround for the moment is to remove any Handlebars expression such as, for example, {{Copyrights}} from each web section of a Capture OnTheGo template by viewing each web section in Source mode. An alternative workaround is to uncheck the option Evaluate Handlebars expressions in the Properties window of each web section.

Tried just removing the {{Copyrights}} and saved, but still got the errors going to the Preview tab and back to Design. Next, removed the evaluate Handlebars on the only section that I have and saved, but still received they errors. Closed and reopened the Designer and resources and verified that everything was removed/unchecked, which it was before attempting the Preview tab.

It worked this time to press the tabs without the errors, so I published the resources to the workflow and processed more documents. Unfortunately, I’m still receiving the Invalid URI: The format of the URI could not be determined. error message.

image

I believe that I must have accidentally pasted in a hidden character when I entered in the Authentication Key in the COTG preferences in the Workflow HTTP Server 2 settings.
Reentering it resolved the URI error message.

Even tough I can flip between the tabs in designer, the error shows up in the workflow at the web content step, so instead of getting HTML form in the app, it uploads the input PDF.

ERROR: 10:45:46.177 [0007] W3001 : Error while executing plugin: HTTP/1.1 500 An unspecified error occurred which was caused by ApplicationException: TypeError: $(...).removeClass(...).removeEmptyAttr is not a function (SRV000001)
ERROR: 10:45:46.177 [0007] Create Web Content: W1603 : Plugin failed - 10:45:46 (elapsed time: 00:00:00.342)

image

Spoke too soon.

Still getting the Invalid URI: The format of the URI could not be determined, but didn’t notice it because when I process multiple files, with every other the web content errors out.

I am sorry to hear that the provided workaround did not prevent the issue from occurring on the workflow side. This issue has been shared internally too.

I assume that you had applied one of the following two workarounds and that you had sent the changed Capture OnTheGo template to the OL Connect Workflow service when the error occurred by executing the Create Web Content task?

The workaround for the moment is to remove any Handlebars expression such as, for example, {{Copyrights}} from each web section of a Capture OnTheGo template by viewing each web section in Source mode. An alternative workaround is to uncheck the option Evaluate Handlebars expressions in the Properties window of each web section.

I first removed the {{Copyrights}}, but still received the error messages in the Designer. Next also removed the Evaluate Handlebar expressions in the section properties. I only have one section.

The result was no error in the designer, but after publishing the resources to the workflow, I get the error when processing in the workflow, but it seems like it errors but alternated between the URI error and the Web Content error.

Can you please share your OL Connect resources by a PM? Because then we can take a look at your resources.

How can I share them privately?

I also found that I missed one hidden input handlebar that I had forgotten about.

Testing it seems that the Web Content error is resolved by switching from the handlebar to older methods, but the URI error has not been resolved.