Skip to main content

Notifications

Community site session details

Community site session details

Session Id : CmOLkK2VjSMZWmf/jN0IBr
Power Automate - General Discussion
Unanswered

Convert file

Like (0) ShareShare
ReportReport
Posted on 7 Jun 2023 20:49:49 by 926

Hello everybody,

 

I have an application where the user uploads a file, and I want to create a flow that detects the extension of the file, if it is in pdf format it converts it into an image.
(The files are stored in a table at sharepoint)

 

How can I do this?

  • SudeepGhatakNZ Profile Picture
    14,303 Most Valuable Professional on 08 Jun 2023 at 07:44:30
    Re: Convert file

    @Sundeep_Malik 's suggestion is a good one. The Reservation I have is storing confidential files temporarily in onedrive of the account that is used to establish the connection. Like Sundeep.said, check with the customer first 

     

  • Sundeep_Malik Profile Picture
    6,480 on 08 Jun 2023 at 04:52:43
    Re: Convert file

    Hey @gikido 

     

    There is a free way to convert pdf to image.

    Not sure if customer will give permission or not.

    Firstly save your file in one drive for business.

    You can do it using create file.

    Sundeep_Malik_0-1686199794287.png

     

    After this use convert file action, in the target type give jpg.

    Sundeep_Malik_1-1686199851269.png

    Then you can use create file action of one drive or sharepoint wherever you want the end file to be saved at.

    Sundeep_Malik_2-1686199904002.png

    Sundeep_Malik_3-1686199919987.png

     

    Then you can just delete the file from one drive, if you dont want to store it in one drive.

     

     

    I hope this helps 🙂

  • gikido Profile Picture
    926 on 08 Jun 2023 at 00:24:57
    Re: Convert file

    @SudeepGhatakNZ 

     

    can you give me some ideas on encodian and plumsail prices for the converter tool?

  • SudeepGhatakNZ Profile Picture
    14,303 Most Valuable Professional on 08 Jun 2023 at 00:18:09
    Re: Convert file

    Unfortunately not, but you can vote for this feature.

    Convert PDF to Text / Table / Image · Community (powerautomate.com)

     

  • gikido Profile Picture
    926 on 08 Jun 2023 at 00:00:02
    Re: Convert file

    @SudeepGhatakNZ 

     

    Thank you

    for converting pdf to image files is there no free solution? is it mandatory to use premium connectors?

  • SudeepGhatakNZ Profile Picture
    14,303 Most Valuable Professional on 07 Jun 2023 at 23:35:39
    Re: Convert file

    @gikido ,

     

    You can build a flow that triggers on File uploaded trigger.

    SudeepGhatakNZ_0-1686180757868.png

    You can retrieve the File Extension using the following expression

    last(split(triggerOutputs()?['body/{FilenameWithExtension}'],'.'))

    Finally, you need to use a third-party connector to convert the file into an image. Here is one

    Convert a PDF file to images with Power Automate — Encodian

     

  • gikido Profile Picture
    926 on 07 Jun 2023 at 23:25:43
    Re: Convert file

    @SudeepGhatakNZ 

     

    No, the customer wants a solution without these two connectors. in addition there is no predefined document, the user can upload a different file each time

  • SudeepGhatakNZ Profile Picture
    14,303 Most Valuable Professional on 07 Jun 2023 at 23:17:51
    Re: Convert file

    @gikido , Have you considered Docusign or AdobeSign?

     

  • gikido Profile Picture
    926 on 07 Jun 2023 at 23:08:18
    Re: Convert file

    @SudeepGhatakNZ 

    Thanks for your response

     

    1- user upload file for signature
    2- I want to convert pdf to image because I have not found a solution to sign pdf for image yes
    3- I require the pdf to contain only one page

  • SudeepGhatakNZ Profile Picture
    14,303 Most Valuable Professional on 07 Jun 2023 at 23:01:41
    Re: Convert file

    @gikido , Need more info

     

    What application is the user uploading to?

    Why do you want to convert PDF to image?

    What if your PDF has multiple pages?

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started