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
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