Need to shrink image size below 240 kb

Hi @Ush_Dhar

You can use from UiPath.PDF.Activities Package activity called ExportPDFPageAsImage

Loop through all the pages in the pdf for images.

You can use the Get File Info Activity and check the Size of the image in loop.

Ref- How do i get exact image size? - #4 by rikulsilva

If above 240 kb you can resize the image by using following way

Ref- Resize images - #10 by ppr

Hope this helps :slight_smile:

1 Like