How to add itext7 to uipath for invoking vb/c# code

how to add itext7 package so that i can invoke vb/c# code

@May_Prince

Duplicate

cheers

Hi

To add the iText7 package to UiPath so that you can invoke VB/C# code, you can follow these steps:

  1. Open UiPath Studio and create a new project or open an existing project.
  2. In the “Activities” panel, search for “Invoke Code” and drag it into your workflow.
  3. Click on the “Edit” button in the “Invoke Code” activity.
  4. In the “Invoke Code” editor window, select either VB.Net or C# as your language.
  5. Import the iText7 package by adding the following code at the beginning of your script:

For VB.NET:

Imports iText.Kernel.Pdf 
Imports iText.Layout 
Imports iText.Layout.Element

For C#:

using iText.Kernel.Pdf; 
using iText.Layout; 
using iText.Layout.Element;
  1. You can then write your custom code using the iText7 package to perform your desired PDF-related tasks.
  2. Once you are done writing your code, save and close the “Invoke Code” editor window.
  3. Finally, you can run your UiPath workflow to invoke your custom code that uses the iText7 package.

Cheers @May_Prince

1 Like