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

Community site session details

Session Id : arbOPT3I/ZmM8akqhqasNf
Power Automate - Building Flows
Unanswered

PDF file content coding problem

Like (0) ShareShare
ReportReport
Posted on 10 Jul 2022 08:26:05 by Moderator

Hello,

 

I'm struggling with the file content coding of pdf files.

I'm trying to convert the file content of a pdf to a string (so I can later modify it, but as a first step, I'm not changing it at all)

schwibach_2-1657441408916.png

 

So I'm trying to convert the base64 file content to string (in the first compose action) and then put it back together as the proper file content json in the second compose action and then attach it to an email.

 

If I get the file content from OneDrive directly, the file that arrives looks like the coding on the left. If I do my two steps, I get the result on the right. How do I fix that?

 

Thank you! 

 

 

 

schwibach_1-1657441338306.png

 

I have the same question (0)
  • v-liwei-msft Profile Picture
    on 12 Jul 2022 at 08:01:16
    Re: PDF file content coding problem

    Hi @schwibach ,

     

    As far as I know, this method may not be able to extract text strings from PDFs. 

    I recommend you to use the Recognize text in an image or a PDF document action in AI builder. 

    Or there is a ready-made template in flow to help you extract strings from PDF:

    Extract text from images or PDF documents using AI Builder Text Recognition | Microsoft Power Automate

    I this this link will help you a lot :

     

    Best Regards,

    Levi

     

  • schwibach Profile Picture
    Moderator on 12 Jul 2022 at 08:14:19
    Re: PDF file content coding problem

    Thank you... Well, I already know what text to expect because it's a placeholder that I put there.

     

    What I want to do is replace a specific string (that I know is inside the pdf) and replace it with another string.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard
Loading complete