# How to Extract Specific Element from PDF or Scanned Image

**URL:** <https://community.automationedge.com/t/how-to-extract-specific-element-from-pdf-or-scanned-image/3196>\
**Category:** Get Help & Discuss\
**Created:** [April 26, 2021, 5:39am UTC](https://community.automationedge.com/t/how-to-extract-specific-element-from-pdf-or-scanned-image/3196 "2021-04-26T05:39:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shubhamautomation](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/shubhamautomation/32/604_2.png) [@Shubhamautomation](https://community.automationedge.com/u/Shubhamautomation)\
**Post date:** [April 26, 2021, 5:39am UTC](https://community.automationedge.com/t/how-to-extract-specific-element-from-pdf-or-scanned-image/3196/1 "2021-04-26T05:39:32Z")

</div>

Hello,  
**Task like:** How we can extract PAN number from Pan Card  
or extracting specfic element from PDF invoice.  
How we can do that.  
Please tell in step wise

---

<div class="post-metadata">

**Author:** ![Sagar](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@Sagar](https://community.automationedge.com/u/Sagar)\
**Post date:** [April 26, 2021, 6:47am UTC](https://community.automationedge.com/t/how-to-extract-specific-element-from-pdf-or-scanned-image/3196/2 "2021-04-26T06:47:13Z")

</div>

Hi Shubham,

Once you read the PDF File, you will get the extracted text data.  
You need to identify the pattern of the specific data/field you want to get from the extracted data.

In your case the PAN Number has a pattern as mentioned below:

The PAN (or PAN number) is a ten-character long alpha-numeric unique identifier.  
The first five characters are letters (in uppercase by default), followed by four numerals, and the last (tenth) character is a letter.  
The fourth character identifies the type of holder of the card.

Thanks,  
Sagar Singh

---

<div class="post-metadata">

**Author:** ![Shubhamautomation](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/shubhamautomation/32/604_2.png) [@Shubhamautomation](https://community.automationedge.com/u/Shubhamautomation)\
**Post date:** [April 26, 2021, 9:06am UTC](https://community.automationedge.com/t/how-to-extract-specific-element-from-pdf-or-scanned-image/3196/4 "2021-04-26T09:06:38Z")

</div>

Ok thanks  
And for invoice pdf? How to do that?  
I used pdf form steps in workflow. some pdf’s fields are visible in pdfform steps but some not.

I used invoice1 pdf which was editable in browser if we open it. If this pdf I use in pdf form steps then field which are present in invoice pdf are visible.

But when I open another pdf which was not editable if we open in Browser. It’s field was not visible in pdf form steps

---

<div class="post-metadata">

**Author:** ![Sagar](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@Sagar](https://community.automationedge.com/u/Sagar)\
**Post date:** [April 26, 2021, 10:30am UTC](https://community.automationedge.com/t/how-to-extract-specific-element-from-pdf-or-scanned-image/3196/5 "2021-04-26T10:30:58Z")

</div>

Hi Shubham,

The “Read PDF Form” plugin has a limitation, it works only with editable PDF forms.  
That is the reason it is working fine with the first invoice in your case. But unable to get any fields from the other invoice as it is not editable.

Thanks,  
Sagar Singh

---

<div class="post-metadata">

**Author:** ![Shubhamautomation](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/shubhamautomation/32/604_2.png) [@Shubhamautomation](https://community.automationedge.com/u/Shubhamautomation)\
**Post date:** [April 26, 2021, 10:43am UTC](https://community.automationedge.com/t/how-to-extract-specific-element-from-pdf-or-scanned-image/3196/6 "2021-04-26T10:43:42Z")

</div>

Ok !  
But in case if we need to read invoice then how we will do it?

---

<div class="post-metadata">

**Author:** ![Sagar](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@Sagar](https://community.automationedge.com/u/Sagar)\
**Post date:** [April 26, 2021, 10:46am UTC](https://community.automationedge.com/t/how-to-extract-specific-element-from-pdf-or-scanned-image/3196/7 "2021-04-26T10:46:06Z")

</div>

There is another plugin available PDF to Text, you can try using that.  
But it would read the PDF and return whole data in text.

Thanks,  
Sagar Singh

---

<div class="post-metadata">

**Author:** ![Shubhamautomation](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/shubhamautomation/32/604_2.png) [@Shubhamautomation](https://community.automationedge.com/u/Shubhamautomation)\
**Post date:** [April 26, 2021, 11:01am UTC](https://community.automationedge.com/t/how-to-extract-specific-element-from-pdf-or-scanned-image/3196/8 "2021-04-26T11:01:36Z")

</div>

As UIpath provides the feature of indicating elements on pdf or image. So I was trying to do that in AE.
