Hey guys! When I click to download the PDF it downloads and in that I click to open the file, then it opens a new tab with the file link(file:///C:/Users/*****/Downloads/re* ******(50).pdf) UiPath said it needed to activate an item in the extension (Enable Access to file URLs), I activated this item but I can’t perform any activity in the tab that has that file URL PDF. I’ve just tried using the keyboard to print, the modern and classic click, I’ve tried the check app activity (it appears that the image appears) but I can’t perform any activity on that tab. Anyone with a solution?
Use the “Start Process” activity:
- Instead of relying on the browser to open the file, you can use the “Start Process” activity to open the PDF file directly with a PDF reader application installed on your machine. This way, UiPath can interact with the PDF reader application and perform activities like printing or extracting information.
- Configure the activity to start the PDF reader application (e.g., Adobe Acrobat Reader) and pass the file path (
"C:\Users\****\Downloads\re* ******(50).pdf"
) as an argument.
Extract the file path and automate using file operations:
- If you need to perform operations on the downloaded PDF file, you can extract the file path from the URL and use UiPath’s file manipulation activities to interact with it directly.
- Extract the file path (
"C:\Users\****\Downloads\re* ******(50).pdf"
) from the URL using string manipulation functions in UiPath. - Use the file operations activities, such as “Move File,” “Copy File,” or “Delete File,” to handle the downloaded PDF file as needed.
What activities youa re trying to perform on the pdf? A
And when you say you are not able to perofrm any? Is it not identifying?
Ideally a pdf file will be identified as full but jot as separate components
Cheers
I only need to click to print and to be able to save as a PDF.
I’m trying to remove the name of the image with the load image because that name changes every time it is downloaded like report(1), report(2)…
Can you breif your procedure so i can understand it better.
First: I use the excel application scope activity to read my worksheet and in that worksheet there is a column with the link I want to open in the browser.
Second: I use the for each activity to read each row of my table and inside the for each it will get the link and open google chrome with the correct column link
Third: I use the Click to click activity on “Export PDF”, this will show the download at the bottom left, this will use another click to open the report
Fourth: I use the click-to-click activity on the printer to print the PDF (because I want to save it with a certain name) and this is where UiPath cannot find this printer icon. (This part is in a new tab with a file url link like: file:///C:/Users/*****/Downloads/re* ******(50).pdf)
The process is just to read the excel spreadsheet, get the link, open the browser with the link, click on “export pdf”, open the downloaded pdf and print
Use “Rename file” activity to rename the file give the input File and then give New Name
Why not use send hotkeys and send ctrl+p and then attach to print window and you your task
Also active accessibility mode might help in identifying the elements
Cheers
It doesn’t work at all. I put it to click on CTRL + P and it won’t. Now I managed to make it click, but it’s only because I use the use application browser activity again and added another column in my table to be able to assemble the PDF link.
I managed here using the activity again the use application browser activity to open the pdf link and download it. For that I had to add a new column in my table to be able to mount this link dynamically