Adjust Image if page break occurs in mpdf library
问题 I am generating pdf from html source using mpdf library in php and everything seems working perfect. Now I have an issue with the images. Suppose before page end I'm inserting an image but image is big so that it doesn't fit at the bottom of first page and goes to second page. Now I have a long white space at the end of first page because image moved to second page. Now I want is "if next item to insert in pdf is an image then calculate the remaining size of pdf page if it is less than Image