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 Automate
Answered

Export OneNote to PDF

(0) ShareShare
ReportReport
Posted on by 89

Hi guys, wondering if it is possible to create a flow that will export a OneNote page to PDF on creation 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @AislingFaulkner,

     

    Yes, I think this would be possible.

     

    There is a trigger action called, when a new page is created in a section:

    https://docs.microsoft.com/en-us/connectors/onenote/#when-a-new-page-is-created-in-a-section

     

    You should be able to collect the html content of that page and for instance use the convert html to pdf action from Encodian.

     

    Below is an example. Btw, in this example I am using the Get page content action instead of the when a new page is created in a section trigger action.

     

    testconverttopdf.png

  • AislingFaulkner Profile Picture
    89 on at

    Hi @Expiscornovus , thank you for that, unfortunately I don't think my company uses encodian, but I'll look into it!

     

  • Verified answer
    fchopo Profile Picture
    8,003 Moderator on at

    Hello @AislingFaulkner 

    Instead of using the Encodian connector, you can use OneDrive for Business connector (no premium license needed ;)):

    oneNote2Html.png

     

    The steps are:

    1) Get Page Content

    2) Create an HTML file in OneDrive for Business (it will be created in the OneDrive area of the user executing the flow).

    3) Convert the file to PDF

    4) Delete the HTML file (is an intermediate file not needed anymore).

     

    Hope it helps!

    Ferran

  • AislingFaulkner Profile Picture
    89 on at

    Thank you so much, you saved me a massive headache!

     

  • rupeshknn Profile Picture
    2 on at

    I tried this method and it works for the typed text in the OneNote page. but not the pen input. I almost never type in one note. is there any way to get pen input into the pdf?

  • fchopo Profile Picture
    8,003 Moderator on at

    Hi @rupeshknn 

    You can try to convert your pen input into text and then apply this flow: Convert Handwriting to Text in OneNote - Instructions (teachucomp.com) (unfortunately this conversion must be done manually)

    Hope it helps!

    Ferran

     

  • StijnVerm Profile Picture
    on at

    Hi FPocho,

     

    thanks for this.

     

    As an improvement, you can use the title as filename:

    1. trigger when page is created

    2. get list of all pages of the section (here you can get the page title from)

    3. apply to all {list of pages}

                 4. Get content of page (start of your previous answer)

                 5. Create HTML, Filename=  {Pages.Pagetitle}.html, body={pagecontentbody}

                6. ....

                7.....

     

  • Martynas Profile Picture
    2 on at

    Hi, guys, do anyone knows is it possible to make an automated PDF export of specific OneNote page? For example to make an export every day at specified hour.

  • hubertlam Profile Picture
    153 on at

    Pretty much not possible.

    The OneNote pages I deal with have:

    • PDF printout
    • Ink annotations

    ...which means the Get page content action does not support 😞 

  • nvelissaris Profile Picture
    Microsoft Employee on at

    Interesting solution! What if we want to export the entire OneNote regardless of the Page/Section that the change is related too? i.e. when a change is performed on a Page or Section, export the entire OneNote to PDF

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard