Power Automate UseCase : Compress PDF & AI files

One of my customer's graphic team use heavy PDFs and they also gather these Proof heavy PDFs from third party vendors. Storing all these as-is not so optimal in the SPOL library and it takes time to load, share and annotate. The quickest solution that I could think of is to use the Adobe Power Automate plugin and compress the PDFs as soon as it gets uploaded. Having a column called 'Compressed' and set it to true on successful compression helps redundant run of the flow. 

The first trigger has to have some kind of trigger conditions so it just compress PDF files and also if the Compressed column is not true. Remember, Adobe compress throws an output error if you pass the compressed file. Also, you don't want to make a call and lose the credits. 


Next, Get the file Content and pass it on to the Compress PDF. Follow the above help link to how to get the ClientID and set up the plugin. The output of the Adobe Compress activity is your compressed file content. However you need to handle the failure case (if the file is not valid PDF or if the compressed file is passed on by accident). Rewrite on successful compressed file, on failure write it on to the Error Log and set the compressed property appropriately.


Extra trick worth a 1000 dollars : If you want to convert an AI file, rename that to PDF and compress it :)

Comments

Popular posts from this blog

Linksys Wireless Connection Failure

The security validation for this page is invalid. Click Back in your Web

Access Denied Host Header Sharepoint 2010 Windows Server 2008 R2