At present I’ve a fast tip on learn how to convert information encoded in Base64 to PDF utilizing JSAPI in Adobe Marketing campaign Traditional. AC cannot straight connect Base64 attachment to the e-mail:
information:applcation/pdf;base64, iVBORw0KGgoAAAANSUhEUgAAAAUA AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO 9TXL0Y4OHwAAAABJRU5ErkJggg=="
For this we have to first decode incoming file with using reminiscence buffer and put it aside as file. Then such file could be referenced whereas attaching information for every recipient dynamically.
There usually are not a lot of sensible examples on nearly all capabilities described inside JSAPI documantation, however a little little bit of googling round I’ve discovered a pleasant instance for reminiscence buffer
var memBuff = new MemoryBuffer(), f = new File("path/to/export/take a look at.pdf"); memBuff.appendBase64('JVBERi0xLBzb ... Cg=='); f.open("a"); f.writeln(memBuff.toString()); f.shut();