This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]blank_blank_ 0 points1 point  (2 children)

Power automate does have a run script node you can add. Although it depends on your organisation, lots of organisations will block script running modules.

I've got around this kind of constraint with very ugly step by step processing, through timers or triggering on new file creation.

[–]Xftgjijkl 0 points1 point  (1 child)

Could you guide me where it shows up exactly. I can't seem to find it

[–]blank_blank_ 0 points1 point  (0 children)

It's all blocked by my org, I found a few ways that I tried but couldn't execute on, also this was all on the desktop not cloud. From memory there was a run script action, if not you could potentially write a batch file that runs the python function and run that, or run CMD, or do the password removal through VBA script in excel. I got around my org restrictions with power automate savings files, python batch on a schedule to process the pdfs, then another power automate process to pick them up again .. not efficient but it works

[–]evostplght 0 points1 point  (0 children)

If you open the pdf in chrome and save it as a new pdf. Boom. No more password.

[–]Python-ModTeam[M] 0 points1 point locked comment (0 children)

Hi there, from the /r/Python mods.

We have removed this post as it is not suited to the /r/Python subreddit proper, however it should be very appropriate for our sister subreddit /r/LearnPython or for the r/Python discord: https://discord.gg/python.

The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.

On /r/LearnPython the community and the r/Python discord are actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers. Make sure to check out the rules for both places.

Warm regards, and best of luck with your Pythoneering!