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
Use Image to Generate PDF on iOS 17, there is crash #366
Comments
Hi, thanks for reporting this issue.
I believe that simply using the Looking at the relevant code, I believe that there is a calculation issue instead. TPPDF/Source/Internal/Graphics/PDFGraphics.swift Lines 178 to 189 in 32ea436
Can you please provide the image which causes the issue? It would make it easier to test. |
|
I found the issue and it is unrelated to the resizing of images, but instead there is an edge case that wasn't handled with zero available space left on a page. Can you please your application with the code on branch |
ok I will test this fix later and notify you the result |
What did you do?
I want use image to generate a pdf file, on iOS 17, there is crash occured!
What did you expect to happen?
generate images pdf file as expected, but crashed
What happened instead?
TPPDF Environment
TPPDF version: 2.4.1
Xcode version: 15.3
Swift version: 5.10
Demo Code / Project
The text was updated successfully, but these errors were encountered: