techprimate / TPPDF

TPPDF is a simple-to-use PDF builder for iOS and macOS written in Swift

Home Page:https://techprimate.github.io/TPPDF/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

parthmodi605 opened this issue · 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

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!

Any update here ? Same problem

Screenshot 2024-06-06 at 13 26 40