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 · 3 comments
Open

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

parthmodi605 opened this issue Jan 5, 2022 · 3 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
@jaceklapinski
Copy link

jaceklapinski commented Jun 6, 2024

Any update here ? Same problem

Screenshot 2024-06-06 at 13 26 40

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

4 participants