cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ahmednaseem
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
v-alzhan-msft
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
v-alzhan-msft
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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (49,786)