Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
parthmodi605 opened this issue Jan 5, 2022 · 2 comments
Open

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

parthmodi605 opened this issue Jan 5, 2022 · 2 comments
Labels

Comments

@parthmodi605
Copy link

parthmodi605 commented Jan 5, 2022

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

@mjanki
Copy link

mjanki commented Jan 12, 2022

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

@philprime
Copy link
Member

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 philprime added the bug label Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants