I’ve tried using both Open Application and Start Process to open a PDF document … both successfully. However I am having difficulty determining the syntax to use in UiPath for passing “app arguments” (input) on to the application I’m trying to open.
In this case I’m opening Adobe Reader X at 100% zoom, and scroll the view over and down.
Reviewing Adobe’s Parameters for Opening PDFs (http://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf) it suggests this should be possible:
zoom=scale,left,top (Scroll values left and top are in a coordinate system where 0,0
represents the top left corner of the visible page, regardless of
When opening a PDF document from a command shell, you can pass the parameters to the open
command using the /A switch with the following syntax:
/A “=” ""
Acrobat.exe /A “zoom=1000” "C:\example.pdf"
I have been using a “Generic Value” variable that I call “pdfFullPath”. When I pass this in to the Executable Path of Start Process it opens the pdfs as expected (looping through list of pdfs in a folder). Likewise, if I use Open Application, set the selector to the appropriate cls=‘AcrobatSDIWindow’ and filename to the adobe executable file, I can pass the variable in the arguments Input to open the correct file…but as for the additional arguments I’m stuck trying to pass along the extra parameters.
I’d prefer to use Start Process this time as Open Application keeps presenting a warning about opening in protected mode. However for future cases I’d like to know the syntax of both options. I’ve tried every combination I could think of: with and without the /A,“zoom=100,100,100”, “zoom=100” before and after the variable (concatenating with + symbol).
Any tips for a UiPath Rookie!?
I do have the workflow working with workarounds sending a lot of hotkeys and keystrokes to reposition the PDF as needed but recognizing the additional parameters would be far less hack-y.
Thanks in advance