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

The PDF on Xiaomi 13 has no margins #318

Open
zx405 opened this issue Nov 13, 2024 · 1 comment
Open

The PDF on Xiaomi 13 has no margins #318

zx405 opened this issue Nov 13, 2024 · 1 comment

Comments

@zx405
Copy link

zx405 commented Nov 13, 2024

On Xiaomi phones, it seems that the entire page is treated as HTML by default, so I add margins to the HTML tags to make it effective. However, on other phones, the inner part with outer margins is HTML, and I don't need any processing to have margins

@zx405
Copy link
Author

zx405 commented Nov 13, 2024

yeap!
I have found a solution! change the source code
907faac3660329426acff883324c13c
change line 167 of code to .setMinMargins(new PrintAttributes.Margins(20, 20, 20, 20))
patch package it later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant