How to split file on basis of size

Hi Team,

I want to split the file on the basis of file size and the file size limit is fixed up to 300mb.
For eg:- 1)If file size is 400mb then file should get split as 300mb size one file & remaining 100mb file as second file.
2)If file size is 450mb then file should get split as 300mb size one file & remaining 150mb file as second file.

Please help us on this issue.
@Palaniyappan

Hi @Smitesh_Aher2

Check the below thread for reference,I hope it might help you

Thanks @pravallikapaluri for your response.

My file is in the pdf format.

You can split a pdf based on pages. The effect on file size depends on the sizes of the individual pages and their contents.

Loop and split the pdf in individual pages. Then calculate the new blocks fitting your size limit.
You can then apply a new set of splits on the original file based on your calculations, or assemble a new one based on the individual pages.

Hi @Smitesh_Aher2 ,

Could you maybe check with the below post :