TPPDF
TPPDF copied to clipboard
Image size doesn't stays fix even after given fix size
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
-
But if there is little space available at the bottom of the page image gets adjusted there
I have the same issue. It seems like the image just tries to fit itself rather than add a new page.
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!