How to convert pdf into excel which is in tabular format

How to convert pdf into excel which is in tabular format.
The pdf is in tabular form, how to convert that into excel

you can use Read PDF Text + Data Scraping (For Simple Tables)

Hi @anjani_priya

  • Use the Read PDF Text or Read PDF with OCR activity to extract text from the PDF and store the result in a variable.
  • Pass this variable to the Generate Data Table from Text activity to convert the extracted text into a DataTable. Store the output in a DataTable variable.
  • Finally, use the Write Range Workbook activity to write the DataTable into an Excel file.

Hope this helps!

Hi @anjani_priya

Please check below link,

Happy Automation!

Hey @anjani_priya to get data from pdf use get text or get ocr text related to your document requirement then use Generate datatable activity and modify the table accordingly. finally use write range .
cheers

the table data is not coming as rows and columns


error

after generate, the table data is not in rows and columns

@anjani_priya did you try with document understanding?

no i haven’t tried with DU

Hi @anjani_priya

I have slightly modified the code check this!
PDF_To_Excel.zip (96.2 KB)

Hope this helps!

Hey!

If your PDF is in a tabular format, there are a few ways you can convert it to Excel pretty smoothly:

  1. Use UiPath’s PDF Activities – If you’re working in UiPath, try using the Read PDF Text or Read PDF with OCR activities (depending on whether your PDF is native or scanned). Then, you can parse the extracted text and use string manipulation or regex to structure it into a DataTable.
  2. Third-Party Libraries – You can also integrate libraries like Tabula (Java-based) or PDF to Excel converters via API. These can detect tables more accurately and give structured outputs.
  3. Manual Clean-Up (if needed) – Sometimes the conversion needs a bit of post-processing. You can write logic in UiPath to clean and align the data before writing it to Excel using the Write Range activity.
  4. Try Exporting with Tools First – If this is a one-time task, you might consider using Adobe Acrobat or free online tools to export the table to Excel and then refine it in UiPath.

Let us know what kind of PDF you’re dealing with (native or scanned) and we can suggest a more tailored approach!

Hi @anjani_priya

Could you provide the PDF file?
and, do you have access to AI Units ?, as we can use GenAI activities to attain the result you need.

I don’t have access to it.

@anjani_priya
If your table in pdf is bit complex


Click on From PDF and chose the pdf
you can try this way!
Hope this helps!

1 Like

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