I want to use PDF function to convert MainContainer of the end screen from a canvas app. Ex:- PDF(MainContainer) and patch this as an attachment file to column in Dataverse table?
Currently I am displaying pdf(store it into a variable) using pdf viewer
Set(varPDFblob,PDF(MainContainer2,{Orientation:PaperOrientation.Portrait,Size:PaperSize.A4,Margin:"48pt 48pt 48pt 48pt"}))
Also, have the option to send it as an email attachment.
Office365Outlook.SendEmailV2(User().Email,"Subject","Email Body Text",{Attachments:Table({Name:"FileName.pdf",ContentBytes:PDF(MainContainer2)})})
I am not referring to upload attachment file where we can work with attachments function.
Can anyone please shed some light on this ?