Hi,
I want to convert jpg files to files using powershell or any other code in PAD. Is there any available?
Please help.
Solved! Go to Solution.
Hi @Anonymous
Its difficult to tell without taking a look at the selectors you have chosen.
Make sure the selectors nowhere has any information that is points to only the 1st image file or window.
This is for the Print button.
Select only the check box that says button and the 2 checkboxes to the right.
For the main window make sure you do not check the box that contains the image file name and extension
Great, since its working for you now I do not think you would need anything on this post. If you think any of the particular answers have helped you in completion of your task you can mark it as a solution and close the thread.
Hello @Anonymous
How about to use virtual printer called "Microsoft Print to PDF"?
Yes, I can but i tried this
After this, I need to
1. select the specific folder
2. Provide the file name
3. Press save.
Any ideas on how to do?
Hi @Anonymous
You can try out the below
1. Open the image in Paint application
2. Press Ctrl P using send keys to bring the print dialog box
'Microsoft Print to PDF is already selected as the Default printer in Step 1.
3. Spy the Print button and click on it
4. This will now show the Save As Dialog box
Give the output folder path
Make sure to select pdf in the save as dropdown if not already selected
5. In the destination directory you should see a PDF file with the image
-------------------------------------------
Help fellow beings find relevant posts.
Upvote to a supporting response.
Mark as solution to an answer.
When I give the arguments as .jpg file, I am getting the error message as given below:
I don't know what is the mistake is. Please help
Actually I missed out the double quotes, now the jpg file is getting open. But next step is to open the printer dialog box.
I am using the send keys to open up the printer window but actually not getting printer window open.
Is that any mistake I am doing?
Hi @Anonymous
I used the below line in the send keys and it shows up the Print dialog box
{Control}({P})
Since you are using Sendkeys make sure to use "Focus Window" and "Wait" actions wherever applicable.
Post back if you are facing any issues.
-------------------------------------------
Help fellow beings find relevant posts.
Upvote to a supporting response.
Mark as solution to an answer.
Now I can run till Save as dialog box. Can I use "Populate text field window" for providing output folder path?
Or any other options there for providing the folder path?
Hi @Anonymous
Yes that will be spying the textbox and entering text into it.
I have two files in the loop, for the first file, it is working fine and for the second, it says 'Failed to get window'
How to solve that?
Hi @Anonymous
Its difficult to tell without taking a look at the selectors you have chosen.
Make sure the selectors nowhere has any information that is points to only the 1st image file or window.
This is for the Print button.
Select only the check box that says button and the 2 checkboxes to the right.
For the main window make sure you do not check the box that contains the image file name and extension
Thank you so much, now it is working!
One more thing, I want to share this flow with my colleague, if they run will it(UI elements) work for them in their system without any errors?
Yes it should work unless there is nothing "specific" to one machine or something in particular.
Better to run it out and get it clarified.
Sure, I will run it and see.👍
Great, since its working for you now I do not think you would need anything on this post. If you think any of the particular answers have helped you in completion of your task you can mark it as a solution and close the thread.