Print all pages of bitmap in pdf using Itext7

I have a 4 pages long jpg file (got from Linear Layout with a scroll view) that i want to convert and print to pdf using Itext7. But only 1 page is printed. Do I need to split the jpg into pages and add them to the pdf document ? If so how do i split the jpg?

Please help




Extreme Android User
I've never heard of a 4 page jpg....
A jpg is a single image file, period.
Unless you are using an app that can split it into separate images. Then you would need to print each image separately.