Here are some options you could consider:
-Install 3rd party app that has the compression functionality. Then build Power Automate Desktop flow to use that app to compress the pdf.
-Write a script to do this. You will need to install library that can do the compression. So for example install pikepdf python library and then write a python script that uses that library to compress the pdf.
import pikepdf
input_pdf = r"C:\Users\YourUser\Downloads\15mb.pdf"
output_pdf = r"C:\Users\YourUser\Downloads\compressed_output.pdf"
with pikepdf.open(input_pdf) as pdf:
pdf.save(output_pdf)
-find some API that you can send the file in base64 and it compresses it and returns the file in base64 and then convert the base64 back to a file (if you can find a free API for this it will most likely have some limitations if you don't have subscription so might not be a solution for you)
Some kind of script might be the best solution for you.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.