web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SPO: Docx to PDF flow ...
Power Automate
Answered

SPO: Docx to PDF flow runs but when opening pdf it says 'failed to open document'

(0) ShareShare
ReportReport
Posted on by 21

So created a flow when a docx file is saved to sharepoint with an atribute pdf enabled it creates a pdf in the same doc library the flow runs but it throws an error when opening. tried opening with different pdf viewers...

 

what am i missing? 

 

here is the flow:

 

ezJurgen_0-1597130028403.png

 

Categories:
  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @ezJurgen 

     

    You need to use convert PDF action step to convert the docx to pdf.

     

     

    image.png

     

    Here are the detailed steps

    https://natechamberlain.com/2017/10/03/convert-sharepoint-documents-to-pdf-automatically-using-microsoft-flow/

  • ez Jurgen Profile Picture
    21 on at

    Hi @abm ,

     

    thanks for the swift answer. I will try it out. so we still need to use a Onedrive task and location for the conversion? grrr. not really sure what onedrive to use as the flow should work for everyone on sharepoint, and they do not have access to my onedrive of course

  • Verified answer
    v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @ezJurgen ,

     

    You could refer to screenshot below to create the flow:

    1.png

     

    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.

  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @ezJurgen 

     

    Remember the file need to create first before it gets uploaded to Sharepoint or other data sources. So you need a onedrive business or local account needed.

     

    Thanks

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 423

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 177

Last 30 days Overall leaderboard