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
Answered

Office365Outlook.SendEmailV2 ContentBytes: PDF resize in format A4

(0) ShareShare
ReportReport
Posted on by 516

 

Hello,

I have this formula below which creates PDF file from my gallery3 and send it by email.

Office365Outlook.SendEmailV2( 
 "test@mail.com";
 "objtext" ;" bodytext ";
 { 
 Attachments: Table( 
 { 
 Name: "test.pdf"; 
 ContentBytes: PDF(Gallery3;{Orientation:"portrait";ExpandContainers: true; Margin:"5mm"; Size:PaperSize.A4}) 
 } 
 ) 
 } 
 ) 

 The issue i have is when the PDF file is created, the images of my gallery are not resized in A4 format. 

Could you help me please?

I have the same question (0)
  • WarrenBelz Profile Picture
    151,686 Most Valuable Professional on at
    Re: Office365Outlook.SendEmailV2 ContentBytes: PDF resize in format A4

    Hi @Sormick ,

    The experimental PDF function still has a number of bugs / shortcomings, one of which is the handling of images. There are no settings beyond Paper Size, Margins etc that will help you here, so unfortunately there is not much you can do presently.

  • Sormick Profile Picture
    516 on at
    Re: Office365Outlook.SendEmailV2 ContentBytes: PDF resize in format A4

    @WarrenBelz 

    Thank you,

    Please, do you know how to add a second PDF file as attachement?

    Try this but did not worked

    Office365Outlook.SendEmailV2(
     "cei.sav@laposte.fr";
     "Your pdf";
     "Your PDF is attached";
     {
     From: "cei.sav@laposte.fr";
     Attachments: Table(
     {
     ContentBytes: PDF(
     Gallery3;
     {
     Orientation: PaperOrientation.Portrait;//Portrait or Landscape
     Size: PaperSize.A4;//Select your page size
     DPI: 10;
     ExpandContainers: true /* This property makes sure the full content of gallery/containers is expanded as PDF */
     }
     );
     Name: "Export.pdf"
     }&
     {
     ContentBytes: PDF(
     Gallery4;
     {
     Orientation: PaperOrientation.Portrait;//Portrait or Landscape
     Size: PaperSize.A4;//Select your page size
     DPI: 10;
     ExpandContainers: true /* This property makes sure the full content of gallery/containers is expanded as PDF */
     }
     );
     Name: "Export2.pdf"
     }
     )
     }
    )
  • Verified answer
    WarrenBelz Profile Picture
    151,686 Most Valuable Professional on at
    Re: Office365Outlook.SendEmailV2 ContentBytes: PDF resize in format A4

    @Sormick ,

    The first thing I can see is that you have & between the two files instead of ;

  • Sormick Profile Picture
    516 on at
    Re: Office365Outlook.SendEmailV2 ContentBytes: PDF resize in format A4

    Thank you! i replaced ";" with & and now it works!

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 629 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 397 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 232 Moderator

Last 30 days Overall leaderboard