Skip to main content
Cadet | Tier 2
January 1, 2022
Solved

I want to know how i can extract a text from pdf file?

  • January 1, 2022
  • 2 replies
  • 206 views

I can extract all data to txt file, but i need just a two-three words in pdf file. Each pdf file words can be changed but the location of word will not change. in attached file, ı just need green area. There is privacy that's why i painted it.

 

    Best answer by ChanduMohammad

    Hi @rojda dilan küpeli​ ,

     

    Have you tried "PDF: Extract field" command? Using this you can fetch the required fields.

     

    Extracts field from a PDF file and assigns it to a string variable

     

    https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/commands/cloud-extracting-field.html/p>

    2 replies

    Most Valuable Pathfinder
    January 1, 2022

    Hi @rojda dilan küpeli​ ,

     

    Have you tried "PDF: Extract field" command? Using this you can fetch the required fields.

     

    Extracts field from a PDF file and assigns it to a string variable

     

    https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/commands/cloud-extracting-field.html/p>

    Chand
    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    January 1, 2022

    Hi @rojda dilan küpeli​ ,

     

    The page looks Form, so you can use the https://automationanywhere4.blogspot.com/2021/06/FormFieldExtraction.html/p>

     

    or

     

    Once you get details from PDF using PDF: Extract Text, you can string manipulation to get the required string.

     

    I believe the yellow highlighted words are standard, In this case, use Before After action from the string package to get the string.

    image 

     

    Thanks!

     

     

     

     

    _Tamil_