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

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Generate PDF from Gallery and Outlook send all Gallery images.

(1) ShareShare
ReportReport
Posted on by 516

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)})})

 

I have the same question (0)
  • Sormick Profile Picture
    516 on at
    Re: Generate PDF from Gallery and Outlook send all Gallery images.

    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
    516 on at
    Re: Generate PDF from Gallery and Outlook send all Gallery images.

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

  • Sormick Profile Picture
    516 on at
    Re: Generate PDF from Gallery and Outlook send all Gallery images.

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 663 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 398 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 235

Last 30 days Overall leaderboard