How to trim base64 ink sketch code using substring

Hi,

Looking to trim the start of my base64 ink skecth code so that my power automate flow will correctly place a signature in a fillable PDF

Expression used to initialize signature as string: replace(triggerBody()['SiteManagerSignature'],'"','"')

Hello @David_Conroy,

Does it report an error or place an empty picture if you insert it this way?

Best regards,
Petr
Plumsail team

Hi Petr,

Sorry for the delay. It reports an error within the flow. If i remove the signature the flow works fine and all the fields on the PDF populate. The signature token is also set to string.

Hello @David_Conroy,

You can probably try this code

@{replace(InkSketch field output,'data:image/png;base64,','')}

A similar question was discussed in the thread. However it's related to Plumsail Forms, if you receive the ink sketch from third-party forms, try to check their resources for this as well.

Best regards,
Petr
Plumsail