I am trying to export data from a sharepoint list to PDF. However I want to send to the email of the user who wants the list in pdf. How do I do that? Suggestions please

I am trying to export data from a sharepoint list to PDF. However I want to send to the email of the user who wants the list in pdf. How do I do that? Suggestions please
Office365Outlook.SendEmailV2(User().Email,"Subject","Email Body",{Attachments:Table({Name:"attachment.pdf",ContentBytes:PDF(Container1,
{
Orientation: PaperOrientation.Landscape,
Size: PaperSize.Letter,
Margin: "5px",
ExpandContainers: true,
DPI:96
})})});
Where User.Email is the current user or you can enter it using your own custom variable or text field.