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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / html page breaks does ...
Power Apps
Unanswered

html page breaks does not work using MS Flow to convert to PDF.

(2) ShareShare
ReportReport
Posted on by

I created a html with CSS coding to page-break before <h1></h1> tags. Using print preview, I am able to see the page breaks, however, when I run my flow there is no page break. Any Idea to resolve this issue.

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    Did you have any success with this issue? 

    I  have tried all sorts of arrangments of page-breaks  to no avail. 

     

  • anon12333 Profile Picture
    2 on at

    Any update on this case?

  • Community Power Platform Member Profile Picture
    on at
    No update. I tried creating static tables with spacing to mimic a page break but that did not work. As more tables are added, the tables eventually carry over to the next pages in the pdf
  • Community Power Platform Member Profile Picture
    on at

    I was able to get around this a bit by using a Div of a predefined size. 

     

    <div id="page" class="page" style = "background-color:#FF00FF; height: 775px; width: 595px;">

     

    ( terrible colour was for debugging! )

    This allowed me to create stand alone pages when I knew the content was going  be less than one page. 

    I am currently using a variable to keep track of approximate content height so able to close of the div and start a new one ( like starting a new page ) when it excides a page height. 


    Its alot of overhead for something that should be straight forward. 

     


    @Anonymous wrote:
    No update. I tried creating static tables with spacing to mimic a page break but that did not work. As more tables are added, the tables eventually carry over to the next pages in the pdf

     

  • Community Power Platform Member Profile Picture
    on at

    Where do you run that variable? Within the flow or within the html 'string'?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard