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 : FL6ULJtOHQoiqz1mrUstyQ
Power Apps - Building Power Apps
Unanswered

How to export a screen as a pdf into A4 size to be fit as a must

Like (0) ShareShare
ReportReport
Posted on 30 Apr 2023 15:43:03 by

I am trying to export the screen into A4 Size pdf via email, its working fine - it exports into pdf.

BUT the size is disturbed into 2 pages and even the font is not good looking. 

 

My screen 

MIA27_0-1682868747442.png

 

On button select,I am using the below code :

Office365Outlook.SendEmailV2(
User().Email,
"Subject to be here PowerApp of serial " & FindSerialNo.Text,
"Email to be here of powerapp",
{
Attachments: Table(
{
Name: "ServiceDataRepo.pdf",
ContentBytes: PDF(A4pdf,{Size:PaperSize.A4,Margin:"0.25inch 0.25inch 0.25inch 0.25inch",Orientation:PaperOrientation.Portrait,ExpandContainers:true})
}
)
}
)

 

The result in the acrobat pdf viewer is as below, it as broken into 2 pages as well the font is disturbed:

MIA27_1-1682868843706.png

 

Please guide, how to achieve the requirement,

 

Note : I tried, all the put into a container and tried to change the size of pixel to match with A4size , but the disadvantage in the container, once you insert any thing inside the container, it will not allow you to move, it keep next to next, I mean you cannot break the container controller.

 

Note2 : This test I am doing, if successful, I want to make a edit form, data to written and retrieved via patch and then user can export as a A4 size.

 

 

  • vishalthakur1 Profile Picture
    15 on 13 Jul 2023 at 13:25:05
    Re: How to export a screen as a pdf into A4 size to be fit as a must

    once you insert any thing inside the container, it will not allow you to move-- Have you tried using a normal container instead of a Horizontal or vertical container ?

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473