PDF Compressor

Hi guyz I have the set of images in folder (size 100mb) and i can converter it into pdf size 11.6mb now i need to convert it into image to pdf of size 2mb while converting image to pdf it exceeds 2 mb it should automatically create next pdf .can anyone help me to sought this

Hi Shyam Try this it will work,

Use Assign activity to get all image files then Loop in all the images with Get Directory.
Inside loop use Load Image and then save image as pdf
now use the Invoke code to check its size if size is greater then split it use code below.
Dim fileInfo As New FileInfo(pdfFilePath)
If fileInfo.Length > 2 * 1024 * 1024 Then
’ Logic to split PDF
End If

Thanks and regards
Vineet

hi @Somanath1 My query is i need to convert the set of images into pdf while converting if the size of pdf exceeds 2mb bot should create new pdf file