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 / PDF file content codin...
Power Automate
Unanswered

PDF file content coding problem

(0) ShareShare
ReportReport
Posted on by 2 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

 

Categories:
I have the same question (0)
  • v-liwei-msft Profile Picture
    Microsoft Employee on at

    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
    2 Moderator on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 248 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 204

#3
Haque Profile Picture

Haque 179

Last 30 days Overall leaderboard