hi,
I want to convert image to pdf and wanted to install PIL libraries in python to achieve the same task. Please suggest on how to install it
Hi @asharma1 ,
You pass the paths dynamically as shown in below images.
In Python code use need to pass them as arguments so you need to add or make the changes as shown in below image.
(Note:- if you got your solution you can mark as solution and gives kudos)
Thanks & Regards
Vishnu Reddy
I want the input to be dynamic and not hardcoded
Hi @asharma1 ,
I have passed in the code itself as shown below.
Then invoked that file in the Power shell script action.
(Note:- if you got your solution you can mark as solution and gives kudos)
Thanks & Regards
Vishnu Reddy
How to pass variables in python code while invoking using powershell script?
Hi @asharma1 ,
I cant see the image clearly instead of giving the paths here give the Paths in the code itlself and run as shown in below image.
(Note:- if you got your solution you can mark as solution and gives kudos)
Thanks & Regards
Vishnu Reddy
Hi, I am trying to run the custom module in python script but its giving me this error while passing filepaths:
My python code is as folllows:
Please suggest why is it throwing an error while passing the filepaths?
Hi @asharma1 ,
You need to install Python IDLE shell 3.12 in your system then only it work .
(Note:- if you got your solution you can mark as solution and gives kudos)
Thanks & Regards
Vishnu Reddy
I do not have python pre-installed in the system. I tried your method and its not working, should I install explicitly in my system and then go ahead with this approach?
Hi @asharma1 ,
You can install PIP Library through Command Promt as show in below image.Use need to use this Commnad "pip install Pillow"
Once you install you can Run Power Schell script Action as shown in below image
(Note:- if you got your solution you can mark as solution and gives kudos)
Thanks & Regards
Vishnu Reddy
WarrenBelz
146,651
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional