# I need to check if the PDF file has a specific text

**URL:** <https://discourse.nodered.org/t/i-need-to-check-if-the-pdf-file-has-a-specific-text/66486>\
**Category:** General\
**Created:** [16 August 2022 11:17 UTC](https://discourse.nodered.org/t/i-need-to-check-if-the-pdf-file-has-a-specific-text/66486 "2022-08-16T11:17:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eduardo1](https://avatars.discourse-cdn.com/v4/letter/e/838e76/32.png) [@Eduardo1](https://discourse.nodered.org/u/Eduardo1)\
**Post date:** [16 August 2022 11:17 UTC](https://discourse.nodered.org/t/i-need-to-check-if-the-pdf-file-has-a-specific-text/66486/1 "2022-08-16T11:17:03Z")

</div>

Hi friends.  
I'm building an on-line market using telegram bots. I need to validate the proof of payment, all automatically. The idea is the following: the person will send the proof of payment in the form of a pdf in the telegram bot chat, he will then send this file to node red, my flows will check if this pdf contains a keyword (my name product, for example) and only then will it send the order to the database for processing. Does anyone have any idea how to do this integration?

---

<div class="post-metadata">

**Author:** ![paulkeates](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@paulkeates](https://discourse.nodered.org/u/paulkeates)\
**Post date:** [16 August 2022 11:50 UTC](https://discourse.nodered.org/t/i-need-to-check-if-the-pdf-file-has-a-specific-text/66486/2 "2022-08-16T11:50:05Z")

</div>

Hi,

What have you tried so far?

Which nodes have you installed and experimented with?

Cheers,

Paul

---

<div class="post-metadata">

**Author:** ![Eduardo1](https://avatars.discourse-cdn.com/v4/letter/e/838e76/32.png) [@Eduardo1](https://discourse.nodered.org/u/Eduardo1)\
**Post date:** [16 August 2022 11:56 UTC](https://discourse.nodered.org/t/i-need-to-check-if-the-pdf-file-has-a-specific-text/66486/3 "2022-08-16T11:56:08Z")

</div>

Hi Paul  
I've installed RedBot To manage my Telegram's Bot. For now just download this palette. I need it to collect the pdf file and check if the keyword that I choose exists within the file

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [16 August 2022 11:57 UTC](https://discourse.nodered.org/t/i-need-to-check-if-the-pdf-file-has-a-specific-text/66486/4 "2022-08-16T11:57:50Z")

</div>

Why upload a pdf, if you send them a pdf containing a confirmation code, then all they would have to send is the confirmation code.

---

<div class="post-metadata">

**Author:** ![Eduardo1](https://avatars.discourse-cdn.com/v4/letter/e/838e76/32.png) [@Eduardo1](https://discourse.nodered.org/u/Eduardo1)\
**Post date:** [16 August 2022 12:08 UTC](https://discourse.nodered.org/t/i-need-to-check-if-the-pdf-file-has-a-specific-text/66486/5 "2022-08-16T12:08:51Z")

</div>

Well, I need to confirm the client payment before confirm his order. The only way I found to solve this problem without buying an online API manager is checking out this keyword. When generating the payment invoice for the customer, I can choose this keyword so that it also appears on the receipt that will return to me, so I will have confirmation that the customer actually paid

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [16 August 2022 12:12 UTC](https://discourse.nodered.org/t/i-need-to-check-if-the-pdf-file-has-a-specific-text/66486/6 "2022-08-16T12:12:19Z")

</div>

payment \> send them conformation text/pdf \> they return confirmation code from the text/pdf \> check the code \> confirm order.  
No need to for them to return pdf, all they need to do is return confirmation code.

---

<div class="post-metadata">

**Author:** ![Eduardo1](https://avatars.discourse-cdn.com/v4/letter/e/838e76/32.png) [@Eduardo1](https://discourse.nodered.org/u/Eduardo1)\
**Post date:** [16 August 2022 12:18 UTC](https://discourse.nodered.org/t/i-need-to-check-if-the-pdf-file-has-a-specific-text/66486/7 "2022-08-16T12:18:00Z")

</div>

Modern problems requires modern solutions!!  
I will try this way  
Thank you so much

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [30 August 2022 12:18 UTC](https://discourse.nodered.org/t/i-need-to-check-if-the-pdf-file-has-a-specific-text/66486/8 "2022-08-30T12:18:02Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
