react-native-html-to-pdf
react-native-html-to-pdf copied to clipboard
The PDF on Xiaomi 13 has no margins
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
yeap!
I have found a solution! change the source code
change line 167 of code to
.setMinMargins(new PrintAttributes.Margins(20, 20, 20, 20))
patch package it later
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.