How to Extract only table data from pdf by creating new activity using visual studio

Help me with code

@Swetha_MN
To extract table data from a PDF by creating a new activity using Visual Studio, you can follow these steps:

  1. Set up the development environment:
  • Install Visual Studio.
  • Install the necessary packages for working with PDFs, such as iTextSharp or PdfSharp.
  1. Create a new custom activity:
  • Open Visual Studio and create a new project.
  • Choose the appropriate project type based on your requirements (e.g., Class Library, Workflow Library, etc.).
  • Define the input and output parameters of your custom activity. The input parameter will be the path to the PDF file, and the output parameter will be the extracted table data.
  1. Implement the logic to extract table data:
  • Use the PDF library (iTextSharp, PdfSharp, etc.) to read the PDF file and extract its content.
  • Identify the table within the PDF using specific characteristics like layout, structure, or content.
  • Parse the table data and extract the desired information.
  • Store the extracted table data in the output parameter of your custom activity.
  1. Build and compile the custom activity:
  • Build the project in Visual Studio to ensure there are no compilation errors.
  • Compile the project into a DLL file.
  1. Import the custom activity into UiPath:
  • Open UiPath Studio.
  • Create a new workflow or open an existing one where you want to use the custom activity.
  • In the Studio, go to Manage Packages and import the DLL file containing your custom activity.
  • The custom activity should now be available in the Activities panel.
  1. Use the custom activity in your workflow:
  • Drag and drop the custom activity onto the workflow canvas.
  • Set the input parameter with the path to the PDF file.
  • Use the output parameter to retrieve the extracted table data.
  • Connect the custom activity to other activities to further process or display the extracted table data.

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