Showing results for 
Search instead for 
Did you mean: 
Community Champion
Community Champion

How to check if two PDF files are internally identical

I have a need to check two PDF files to know if they are internally identical, to confirm that a function has completed successfully.  Any way to do this?



Frequent Visitor


Never tried this before. Maybe you can get file content for both pdf in base64 and match its values using condition. 😁

Responsive Resident
Responsive Resident

Hi @martinav  I'm fairly certain you an do this with an AI Builder Form processor model. Take a look at the AI Builder component and in the AI Builder forum.




If my post helps you with your problem or answers your question, please mark it Solved or Answered. This helps anyone with similar challenges. If you like my response, please give it a Thumbs Up.

Community Champion
Community Champion

@Sumen ,


This is a good idea.  However, I was unsure how to set an equality for these very long strings of data.  I did try it using a Condition action, but I was uncertain it was truly comparing the two properly.  I believe I was getting both false positives and false negatives.  I bailed on it then.  This was a couple of years ago.

Frequent Visitor

Hi @martinav ,


Yeah, the strings are terribly long. I dont know that, you have already done this or not. Just a suggestion, you can pass both of the file content into 2 separate string e.g passing file content to a string field like this - body('Get_file_content')?['body']?['$content'] and compare those 2 super long text in any online text compare tools ( If the results is identical, maybe you can compare those string variables back inside a condition. Another thing,  you can also pass

decodeBase64(body('Get_file_content')?['body']?['$content']) to the string variable then match the whole content again with a condition. Hope to see how this turns out! 😁

Helpful resources

MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,073)