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
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)
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!
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
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional