I have the new version of UiPath Studio i tried to install IText sharp also but it does not support the Windows project. i will explain the process I don’t know whether processing PDF orientation is correct or NOT then I placed a condition Do while with hotkey activity (Ctrl+]). it has been processed 4 times (90,180,270,360) each time it will extract the table and check whether the condition is true or false until it is true it will loop. here I am having an issue like some PDFs are not rotating. i tried with python, its not working I attaching the Xmal file for the reference.
can u guys give some solution for this type of scenario
Sequence2.xaml (121.3 KB)
Hi there,
for windows project, you can search for “itextcore” and install the the package, like on the link below:
Here there is an issue regarding the UiPath version currently Itext activity is not available for the Windows project
version 2024.4.0
Hi @Melbin_Antu
Please check the attached screenshot and try the steps highlighted and let me know if you found or not.
Regards
Once uncheck the field of activities only and then give a try @Melbin_Antu
Regards
I tried Python also but it not running in the UiPath studio I tried that code in pychamp and vs code, there is no issue it works correctly
I will attach the XAML and Python code
tessst.xaml (16.0 KB)
python rotatepdf.txt (847 Bytes)
Hi @Melbin_Antu
Bro except Include Prelease please uncheck remaining all the filed. Please check the below screenshot.
Regards
you are not finding it because you have filters and you do not have nuget.org as a source on your package manager, see below:
To have nuget.org on your studio, go to Manage Packages → settings and enable it, see below
you need nuget.org and remove “is prerelease”. follow the screenshots I sent you.
scroll down under package source and check the nuget.org
Hi @Melbin_Antu
https://api.nuget.org/v3/index.json
Place the above URL in the URL Field mentioned in the above screenshot and give the name as mentioned and then click on add andalso once it is added close the studio ad reopen it then you can find the packages.
Regards
you’re welcome bro @Melbin_Antu and can you please share the code inside invoke?
Regards
// Arguments:
// in_InputFilePath (string)
// in_RotationDegrees (int)
// Add necessary imports
using System;
using System.IO;
using PdfSharp.Pdf;
using PdfSharp.Pdf.IO;
// Input file path and rotation degree
string orig = in_InputFilePath;
string tempFile = orig + “.temp.pdf”;
int rotationDegrees = in_RotationDegrees;
// Open the original PDF
PdfDocument document = PdfReader.Open(orig, PdfDocumentOpenMode.Modify);
// Rotate each page
for (int i = 0; i < document.PageCount; i++)
{
PdfPage page = document.Pages[i];
page.Rotate = (page.Rotate + rotationDegrees) % 360;
}
// Save the changes to a temporary file
document.Save(tempFile);
document.Close();
// Replace the original file with the temporary file
File.Replace(tempFile, orig, null);
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.