web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Generate PDF from Gall...
Power Apps
Unanswered

Generate PDF from Gallery and Outlook send all Gallery images.

(1) ShareShare
ReportReport
Posted on by 566

I have a gallery Named "Gallery1" which contains multiple Images.

I need to Generate a PDF from this Gallery and send the PDF as attachment in outlook but i have two issues:

 

  • On my Gallery i have More than 4 Images but on my Generated PDF i have only 4 images on this PDF. The other Images are blank pages.
  • The second issue i have is that the images on the Generated PDF are not in A4 format.

Please find here below the Formula which generates the PDF from my Gallery1 and send the PDF to email:

Set(myPDFDEP; PDF(Gallery1; { Orientation: PaperOrientation.Portrait;
 Size: PaperSize.A4;
 DPI: 1;
 ExpandContainers: true }));;Set(depvisible;"true");;Office365Outlook.SendEmailV2("my@email";"TEST";" This is a test";{Attachments:Table({Name:"test.pdf";ContentBytes:PDF(Gallery1)})})

 

Categories:
  • Sormick Profile Picture
    566 on at

    I changed my formula to this one:

    Office365Outlook.SendEmailV2(
    "my@email.com";
    "test";
    "message test";
    {
    Attachments: Table(
    {
    Name: "test.pdf";
    ContentBytes: PDF(Gallery1;{Size:PaperSize.A4;Margin:"0.25inch 0.25inch 0.25inch 0.25inch";Orientation:PaperOrientation.Portrait;ExpandContainers:true})})})

    now the PDF Generated has all the images inside but still on A4 format

    If i resize the images on my gallery to fit the gallery form the generated PDF has only 4 images instead of 8 images. 

    Do i need to change my formulas above or change the settings of my Gallery / Image to Generate PDF with images inside in A4 format?

  • Sormick Profile Picture
    566 on at

    Dear community. Any idea how to Create PDF from gallery in A4 format with all the images of my Gallery?

  • Sormick Profile Picture
    566 on at

    Hello Community. Any idea how to fit all images of my gallery to A4 format or how to generate PDF in A4 format with all the images of my gallery?

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard