TPPDF icon indicating copy to clipboard operation
TPPDF copied to clipboard

Image size doesn't stays fix even after given fix size

Open parthmodi605 opened this issue 3 years ago • 3 comments

I am working on creating a pdf with a fix template

code i have used :

  • document.add(.contentRight, image: PDFImage(image: signImage.resized(withPercentage: 0.4) ?? UIImage(),size: CGSize(width: 180, height: 180), quality: 1.0, options: .none))

  • if there is space at the bottom of page image is seen properly Simulator Screen Shot - iPhone 8 - 2022-01-05 at 11 09 40

  • But if there is little space available at the bottom of the page image gets adjusted there Simulator Screen Shot - iPhone 8 - 2022-01-05 at 11 10 43

parthmodi605 avatar Jan 05 '22 05:01 parthmodi605

I have the same issue. It seems like the image just tries to fit itself rather than add a new page.

mjanki avatar Jan 12 '22 08:01 mjanki

Sorry for the long overdue response.

This looks like a bug to me, as it should not resize the image with imageOptions set to none. Thanks for reporting!

philprime avatar Dec 03 '22 14:12 philprime