react-native-html-to-pdf icon indicating copy to clipboard operation
react-native-html-to-pdf copied to clipboard

The PDF on Xiaomi 13 has no margins

Open zx405 opened this issue 1 year ago • 1 comments

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 avatar Nov 13 '24 06:11 zx405

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

zx405 avatar Nov 13 '24 09:11 zx405

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.

stale[bot] avatar Apr 25 '25 00:04 stale[bot]