I tried this method to get a PDF from scrollable content.
I placed a container and added a Fluid Grid Canvas control inside it, then placed my content inside a card within the control. This worked fine for me.
To add a Fluid Grid Canvas in a Canvas app, create a new Scrollable Screen, cut the Fluid Grid control, and paste it into your container.
Send Mail button Try this formula,
Office365Outlook.SendEmailV2(
User().Email,
"Your PDF is attached",
"Please find the attached PDF.",
{
Attachments: Table(
{
ContentBytes: PDF(
Container3,
{
Orientation: PaperOrientation.Portrait,
//Portrait or Landscape
DPI: 150,
Size: PaperSize.A4,
//Select your page size
ExpandContainers: true,
/* This property makes sure the full content of gallery/containers is expanded as PDF */
Margin: "2.5mm"// Expand content of gallery/containers as PDF
}
),
Name: "Export.pdf"
}
)
}
);
Thanks!
If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.