Implementation

Go to Power Automate > My Flows > Click on New Flow > Select Automated Cloud Flow

Next
It will ask for the Flow name and Trigger

Add flow name and choose the trigger – when a file is created (properties only).

Add Site address, library name, leave the folder as empty

Add Site Address, File identifier will be Identifier

Next
Take Create File From OneDrive

Folder path- Root

File Name- File Name With Extension

File Content- Body (from Get File Content)

Next
Take Convert File from OneDrive

File – Id (from Create file)

Target type – PDF

Next
Take Create File from SharePoint

Folder path – Give folder save the PDF where you want

File Name – Name (from when a file is created)

File Content – Body (from create file OneDrive)

File – Id (from create file)

This is the Flow that we have Created