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

4 REPLIES 4
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/

Frederico
Advocate I
Advocate I

Is there a way (without using the Encondian connector) to insert the pages numbers (and be incremental as Word does) in a pdf or an HTML file using Power Automate?

As I understood, I can't hard code the footer on my HTML script because the Convert File (preview) activity doesn't recognize headers and footers.

The following is my current flow (canvas app send to the flow an HTML code --> flow creates a file with the HTML --> convert this file to pdf

Frederico_0-1632413096801.png

 

 

Thanks

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,145)