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 Platform Community / Forums / Power Automate / Convert file extension...
Power Automate
Unanswered

Convert file extension from .docx to .pdf

(0) ShareShare
ReportReport
Posted on by 9

Hello,

Recently I have been tasked to create a flow where a document from the SharePoint library is being sent for approval and signature to the management. Now all the documents are created in .docx format to be editable. After that they go through verification and edition processes at a few specialists and afterwards are sent via email to the CEO for signature.

 

The signature is a digital one, so it only can be applied on a PDF file. I managed to make the conversion from .docx to .pdf using OneDrive, so when the CEO receives the email, the file is already in PDF, just to be downloaded and digitally signed.

The other flow works backwards, when CEO responds to the same email with the digitally signed PDF uploaded, it gets back this file to the same file library.

 

Here I am facing a problem - when I am trying to update the initial .docx document via Update file properties and Update file actions, I am managing to update just metadata and content of the file, but not the file extension, so it stays in the library as .docx, although it has a PDF content.

 

I know that I can delete the old file and recreate a new one with the new extension, but I would like to preserve the initial ID of the file in the library.

 

Is there a solution for this?

 

Please advise.

Thank you.

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,414 Super User 2025 Season 2 on at

    Hi @Alexman 

     

    If you converted the file to a PDF, you should see the PDF version. It sounds like the PDF was put into a different place than where you are looking? If you converted, there should not be a DOCX version.


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Alexman Profile Picture
    9 on at

    Yes, indeed. I mentioned that I used OneDrive to export and convert files there. However the issue is placing back the file in a different format that would substitute the original one without changing the ID in the library.

  • Michael E. Gernaey Profile Picture
    53,414 Super User 2025 Season 2 on at

    @Alexman 

     

    But if you just change the Extension, that will not make that file a PDF. You would end up making the document invalid.

     

    And you cannot delete it and recreate it, nor can you just overwrite it with the actual PDF. No matter what you do its either a new id, or a broken file.


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Alexman Profile Picture
    9 on at

    I managed to actually format the document to PDF in OneDrive, however when I update the original file with the new content (PDF) I can't change the extension to PDF. That is why it stays displayed as a .docx file, however the content is already updated to PDF.
    So I am trying to find out if there is a way to actually change the extension in the SharePoint library.

    I found a solution that worked back in 2021 that looks like this:

    Screenshot 2023-10-18 172639.png

    However now it just doesn't do the job. It runs with no errors, but the extension stays the same.

     

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard