We're trying to embed signature images into a bulk release receipt PDF using Appian's DOCX template generation.
Problem: We're generating a bulk release receipt PDF in Appian using:
signature
signature2
snapshot of process model
Template:Template has bookmarks named signature and signature2
What we verified works:
todocument(432896)
We have a separate images input for dynamic docx that is used specifically for embedding the images that returns a map with names and document objects, which maps to bookmarks in Docx Template.a!localVariables( local!firstRelease: index(pv!release, 1, null), local!relinquisherSigId: index( local!firstRelease, "relinquisherSignatureId", null ), local!receiverSigId: index( local!firstRelease, "recieverSignatureId", null ), a!map( signature: if( a!isNotNullOrEmpty(local!relinquisherSigId), todocument(local!relinquisherSigId), null ), signature2: if( a!isNotNullOrEmpty(local!receiverSigId), todocument(local!receiverSigId), null ) )).
What's failing:
«${signature}»
[#if signature??]
Expected: Signature images embedded at bookmarks in final PDF Actual: FreeMarker errors or blank spaces
Questions:
Discussion posts and replies are publicly visible
In Docx from Dynamic Template smart service you have image parameter simple
{ signature: document(), signature2: document(), }