-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Error in paper size definition #225
Comments
Hi Sami, thanks for letting me know about this issue!
Mentioning the issue number will link the issue with the pull request. |
thank you for the primer... sorry for question but is it normal that i get an error that i can't write to tech primate/TPPDF and i should create my own sgkhour/TPPDF fork ? or is this a permission that you have to set ? i was working with the seems to have worked (or so i hope...) Sami |
Corrected the usLetter page height and usLedger page width to reflect 11inx72dpi
* Added macOS compatibility to tests (#224) * Fixed missing file ref * #225: Fixing incorrect US page size (#226) Corrected the usLetter page height and usLedger page width to reflect 11inx72dpi * Fixed missing file ref * Updated changelog Co-authored-by: Sami Khoury <50881610+Sgkhour@users.noreply.github.com>
Fixed in 2.3.1 |
Hi, i was trying to debug an issue with lack of space around the footer of a page when i think i found the culprit . in PDFPageFormat+SizeConstants.swift, the page size defined is incorrect.
more specifically the height of usLetter
return CGSize(width: 612, height: 762) // 216 x 279 mm | 8.5 x 11.0 in
should be 792 (11x72) instead
return CGSize(width: 612, height: 792) // 216 x 279 mm | 8.5 x 11.0 in
and the width of usLedger
return CGSize(width: 720, height: 1224) // 279 x 432 mm | 11.0 x 17.0 in
should be 792 instead
return CGSize(width: 792, height: 1224) // 279 x 432 mm | 11.0 x 17.0 in
when i specified the document size
document.layout = PDFPageLayout(size: CGSize(width: 612, height: 792),...
the footer spacing was now properly aligned.
looks like an easy fix but i have never done pull requests before.. something new to learn
Sami
The text was updated successfully, but these errors were encountered: