
- Open adobe reader document within a c# application pdf#
- Open adobe reader document within a c# application full#
Open adobe reader document within a c# application full#
Thanks florin.stan: great outline and I appreciate such a quick response.Īlthough I had been putting a variable with the Full Path of the “File” (not the Adobe Reader Program) into the first box it was still opening and running the file but not allowing me to pass the arguments.
Open adobe reader document within a c# application pdf#
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. 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). However for future cases I’d like to know the syntax of both options.

I’d prefer to use Start Process this time as Open Application keeps presenting a warning about opening in protected mode. 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. 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). I have been using a “Generic Value” variable that I call “pdfFullPath”. When opening a PDF document from a command shell, you can pass the parameters to the openĬommand using the /A switch with the following syntax:Īcrobat.exe /A “zoom=1000” "C:\example.pdf" Represents the top left corner of the visible page, regardless of Zoom=scale,left,top (Scroll values left and top are in a coordinate system where 0,0 Reviewing Adobe’s Parameters for Opening PDFs ( DC Developer Resources - DC Developer Docs documentation) it suggests this should be possible:

In this case I’m opening Adobe Reader X at 100% zoom, and scroll the view over and down. 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. I’ve tried using both Open Application and Start Process to open a PDF document … both successfully.
