Getting the desired part from the PDF file

I want to copy the number inside the red rectangle in the picture, how can I do that? I can get all the content with the Read PDF Text activity, but I can’t get the part I want.

@tolgademir
Hi,

Use read pdf text activity.
Use regex or String manipulations to get the data inside the red rectangle.

Thank you

Hi @tolgademir

  1. Use Read PDF Text or Read PDF with OCR activity to read the PDF.
    Note: Download UiPath.PDF.Activtites to use these and use can use Tesseract OCR in Read PDF with OCR for better results.

  2. Store it an text file and use Regular expressions to extract the total value.

Hope it helps!!
Regards,

Hi @tolgademir

Can you provide me the extracted data file so that I will give you the regex expression

Regards

Hi @tolgademir ,

Check with Read PDF Text activity with PreserveFormat property set to True and get the text data.

We can then apply a Regex Expression to get the value required.

(?<=FATURA TOPLAM TUTARI.*)[\d.,]+

Expression:

System.Text.RegularExpressions.Regex.Match(yourExtractedInputString,"(?<=FATURA TOPLAM TUTARI.*)[\d.,]+").Value

Check with the above Expression and let us know if it doesn’t work also providing the sample data if possible.

This video solved my problem, thanks for your answers.

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