I'm trying to create a dynamic certificate template which will take user inputs for awards and on that basis corresponding images will be shown on the Certificate template. I'm using a PDF function to convert the container to PDF and then send it as an email to the recipient. When I try to print this PDF I get neat and clear pdf template, but when I try to send it as an attachment, the images are half loaded in it. Also, I tried adding few delays to it but doesn't seem to work. Any help would be appreciated!
Thanks!
Set(
pdfBlob1,
PDF(Container3,{Orientation: PaperOrientation.Portrait})
);
Set(
pdfFile1,
{
Name: varToName & "_Certificate.pdf",
ContentBytes: pdfBlob
}
);
Office365Outlook.SendEmailV2(
User().Email,
"Way to GO!!!",
"Test",
{
Attachments: Table({Name: "ABCD.PDF",ContentBytes: pdfBlob1})
}
);
Print();
Notify("Email Sent", NotificationType.Success, 30000);
Set(pdfBlob1, Blank());
Set(pdfFile1, Blank());