I’m trying to generate a PDF with several images. Problem is, the number of images varies. Heres my code so far, which generates the PDF correclty however none of the images are included in the PDF.
The images are stored in serviceImagesRT, which is a runtime property with cardinality many. In the code I’m trying to iterate this object class and extract every image
I’m not sure what a static HTML payload is. But my whole problem here is that the number of images in the PDF is variable, and based on user input.
Then you can take the HTML string and insert it into your HTML template the same way you insert variables.
Check this image:
Thanks this worked!
For others struggling with the same, in my case fileContentLink has 2 underscores. Not sure if this is consistent.
That means it should be images.__fileContentLink
Thanks for the clarification. I think dobbel underscore is consistent, yes.