cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

How to add page numbers and page breaks to pdf via flow

I am just wondering if there is any option to add page breaks and page numbers when using convert to pdf action in flow.  I have have flow with following actions.

- Get Sharepoint item,

- Create file in sharepoint  xxx.html with content from the previous action

- Convert to Pdf

- Create file xxx.pdf - content from last step.

- Delete the xxx.html file.

 

I have tried add page break via css but it does not show in the pdf generated.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Support
Community Support

Hi @ahmednaseem ,

 

I have made a test on my side and I'm afraid that there is no any way to add page numbers and breaks to pdf with Microsoft flow currently.

 

Best regards,

Alice       

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hey @v-alzhan-msft @ahmednaseem 

Apologies for picking up an old thread... I've found this whilst helping another user on this same topic today.

@v-alzhan-msft  - Totally agree you cannot do this with the Onedrive connector However, it is possible in Power Automate using a third party connector such as Plumsail or Encodian which provide full HTML / CSS support.

This post covers how to add page breaks to HTML and convert to PDF: https://blog.encodian.com/2020/07/converting-html-to-pdf-or-word-with-power-automate/#link3 

This Encodian action covers how to add pager numbers to a PDF document: https://support.encodian.com/hc/en-gb/articles/360014464534-Add-Page-Numbers

HTH

Jay

View solution in original post

3 REPLIES 3
Community Support
Community Support

Hi @ahmednaseem ,

 

I have made a test on my side and I'm afraid that there is no any way to add page numbers and breaks to pdf with Microsoft flow currently.

 

Best regards,

Alice       

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hey @v-alzhan-msft @ahmednaseem 

Apologies for picking up an old thread... I've found this whilst helping another user on this same topic today.

@v-alzhan-msft  - Totally agree you cannot do this with the Onedrive connector However, it is possible in Power Automate using a third party connector such as Plumsail or Encodian which provide full HTML / CSS support.

This post covers how to add page breaks to HTML and convert to PDF: https://blog.encodian.com/2020/07/converting-html-to-pdf-or-word-with-power-automate/#link3 

This Encodian action covers how to add pager numbers to a PDF document: https://support.encodian.com/hc/en-gb/articles/360014464534-Add-Page-Numbers

HTH

Jay

View solution in original post

A workaround exists to generate a PDF with more than one pages by using CSS and the OneDrive connector:

https://www.inspiribytes.com/power-automate/generate-multiple-pages-pdf-in-power-automate/

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (7,310)