how to add itext7 package so that i can invoke vb/c# code
Hi
To add the iText7 package to UiPath so that you can invoke VB/C# code, you can follow these steps:
- Open UiPath Studio and create a new project or open an existing project.
- In the “Activities” panel, search for “Invoke Code” and drag it into your workflow.
- Click on the “Edit” button in the “Invoke Code” activity.
- In the “Invoke Code” editor window, select either VB.Net or C# as your language.
- 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;
- You can then write your custom code using the iText7 package to perform your desired PDF-related tasks.
- Once you are done writing your code, save and close the “Invoke Code” editor window.
- Finally, you can run your UiPath workflow to invoke your custom code that uses the iText7 package.
Cheers @May_Prince
1 Like