# Read pdf using ocr teseract?

**URL:** <https://discourse.nodered.org/t/read-pdf-using-ocr-teseract/9450>\
**Category:** General\
**Created:** [26 March 2019 12:57 UTC](https://discourse.nodered.org/t/read-pdf-using-ocr-teseract/9450 "2019-03-26T12:57:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![harisankar](https://avatars.discourse-cdn.com/v4/letter/h/839c29/32.png) [@harisankar](https://discourse.nodered.org/u/harisankar)\
**Post date:** [26 March 2019 12:57 UTC](https://discourse.nodered.org/t/read-pdf-using-ocr-teseract/9450/1 "2019-03-26T12:57:13Z")

</div>

Hi team,  
i want to read the data from pdf using teseract component proviede by node red.  
But i dont know how can i pass input parameer as a file name .

 ![nodered](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/b/b22f7a1f4d127d86bb6fa553171c6eac01d337d9.png) ![nodered1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/b/b3c1123acbc1f952355fc37739bdf535b1a725f3.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 March 2019 13:36 UTC](https://discourse.nodered.org/t/read-pdf-using-ocr-teseract/9450/2 "2019-03-26T13:36:06Z")

</div>

Assuming you are using node-red-contrib-tesseract then the readme tells you how to pass the filename.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [26 March 2019 13:36 UTC](https://discourse.nodered.org/t/read-pdf-using-ocr-teseract/9450/3 "2019-03-26T13:36:23Z")

</div>

the readme for the node (and therefore the info panel on the right hand side)  
says to pass it as msg.payload

---

<div class="post-metadata">

**Author:** ![harisankar](https://avatars.discourse-cdn.com/v4/letter/h/839c29/32.png) [@harisankar](https://discourse.nodered.org/u/harisankar)\
**Post date:** [26 March 2019 14:23 UTC](https://discourse.nodered.org/t/read-pdf-using-ocr-teseract/9450/4 "2019-03-26T14:23:12Z")

</div>

yes.how to pass file name?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [26 March 2019 14:41 UTC](https://discourse.nodered.org/t/read-pdf-using-ocr-teseract/9450/5 "2019-03-26T14:41:53Z")

</div>

send the node a message with the file name as msg.payload
