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 Automate / PowerApps Gallery Expo...
Power Automate
Answered

PowerApps Gallery Export to PDF using Power Automate- PDF format narrows with each page

(0) ShareShare
ReportReport
Posted on by 8

I have a fully functioning flow with a PowerApps trigger that will export all items in a gallery to a PDF, and email the PDF to the user. The issue: the PDF is 10+ pages, and with each page, the margins narrow. The first page has standard wide margins and with each page the margins decrease to a few words of text. I have done other exports that do not have this formatting. 

 

My flow

mjanuzzi_0-1646170092094.png

The HTML text box in the app: (this is the same input in the compose action of the flow)

The HTML is meant to display each question and answer in the list.

"<center><html><body><div><h1><b>PDF Title
" &
"<b> Frequently Asked Questions (FAQ)</center></h1><hr>" & Now()&
Concat(
Gallery1.AllItems, "<b><h4> Question : " & Title & "</b>
<p>" & Answer &"</b><html><body><div>")

 

The PDF format Pages (decreasing margins)

mjanuzzi_1-1646170289045.png
mjanuzzi_2-1646170303519.png

mjanuzzi_3-1646170407328.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @mjanuzzi :

    I think the problem is caused by the continuous nesting of multiple <div>,please try:

    "<center>
    <html>
    <body>
     <div>
     <h1><b>PDF Title" &"<b> FAQ)</center></h1><hr>" &
    Now() &
     Concat(
     Gallery1.AllItems, 
     "<b><h4> Question : " & Title & "</h4><p>" & Answer &"</p></b></div>")
    &"</body></html>"

    Best Regards,

    Bof

  • mjanuzzi Profile Picture
    8 on at

    This works! Thank you for taking the time to provide a solution! The only adjustment I have to make is to end the bold text before the question starts, but this solved the format issue. Thank you!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard