cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Build PDF out of HTML with page breaks

I'm very new to HTML and CSS styling. When my users submit responses via Forms, a series of HTML documents will include all of the responses and then get turned into PDFs.

 

I've been battling with the visual design and layout specifics for a few months now. Each time I take a little step forward I'm met with more unknowns and questions I didn't even know I should ask.

 

Simply put, I need to incorporate some mechanism to cause my PDFs to have page breaks at an appropriate measurable location. I've tried a few solutions, CSS stylings, HTML tags, formatting the HTML document to have blank spaces where I need my page break to happen... Nothing I've tried looks professional, or works quite like I need it to, or simply doesn't work at all.

 

Is there a means to cause a page-break either at a designated location or at the measured end of a page when printing? My data continues to become illegible when printed to a PDF because half of the text is split (right down middle) between a page header and a page footer.

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

There is no way to add page breaks to a PDF when using the built-in converter. Some third party converters like Encodian have the ability to add page breaks to a PDF in Power Automate.  Convert HTML to PDF – Encodian Customer Help



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

7 REPLIES 7
Pstork1
Dual Super User
Dual Super User

There is no way to add page breaks to a PDF when using the built-in converter. Some third party converters like Encodian have the ability to add page breaks to a PDF in Power Automate.  Convert HTML to PDF – Encodian Customer Help



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
mgrachii
Resolver I
Resolver I

This link can also be useful for you if you'd like to use a different workaround: 

http://www.cleverworkarounds.com/2018/03/09/three-ways-to-convert-html-to-pdf-using-microsoft-flow/

Anonymous
Not applicable

I was hoping to dodge spending more money to make this work. This is more information than I had and I value that. For the time being I think I'll have to relegate myself to another work around.

 

I'll keep this the accepted answer for anyone else who might find this helpful.

 

Thank you, @Pstork1 !

Anonymous
Not applicable

This was not quite what I was after - but it included elements I was previously unaware of. For that alone I am thankful.

 

Thank you for the helpful information, @mgrachii !

Just an FYI.  I totally understand not wanting to spend a lot more money.  Just be aware that Encodian has a free trial that is not time boxed.  It will let you do up to 50 PDF documents a month for free.  Its a great way to get an account you can play with until you decide that paying for it is worth the expense.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Anonymous
Not applicable

Excellent advice. Thank you!

acox
Helper II
Helper II

Hi @Anonymous,

 

Besides Encodian, a great solution for you would be Plumsail Documents. It has many templates already prepared, which you can start with right away if you're short on time. Furthermore, it has compact yet very accessible documentation with many common use-cases. Please see the following links if you are interested:

 

 

Note: the solution is paid, with a one-month free trial.

Helpful resources

Top Solution Authors
Users online (4,066)