How to compress pdf files to zip format?

please help me. I want to compress pdf files to zip use non custom activity.

You can use Invoke Power Shell ( https://docs.uipath.com/activities/docs/invoke-power-shell ) where you give Compress-Archive as CommandText, and add Path and DestinationPath as Parameters to the command.

Hi @zzangkim89,

You can zip a folder of pdf’s by using Invoke Method activity with

  1. TargetType —> System.IO.Compression.ZipFile
  2. MethodName —> CreateFomDirectory
  3. create 2 parameters (In direction String) in parameter collection 1st with folderpath (pdf folder), 2nd with expected zip path with .zip extension.

imageimage