christopherdro / react-native-html-to-pdf

Convert html strings to PDF documents using React Native
MIT License
435 stars 269 forks source link

How to Remove padding?? #201

Closed viveKing21 closed 3 years ago

viveKing21 commented 3 years ago

everything works perfectly but i have a background image, and its really working perfectly but im getting padding in generated pdf , thats not i want, How can i remove this? any solution? I'm using Android!

christopherdro commented 3 years ago

Can you try setting padding and margins on body and html to 0?

tioluwani94 commented 3 years ago

Hi @christopherdro, setting padding and margins on the body and html to 0 doesn't remove the spacing. I'm using Android as well. Any other suggestions that might help?

bboniin commented 3 years ago

Olá , @christopherdro , definir o preenchimento e as margens em bodye htmlcomo 0 não remove o espaçamento. Também estou usando o Android. Alguma outra sugestão que possa ajudar?

Conseguiu algo amigo??

HodayaGruz commented 3 years ago

@christopherdro hi, i got this bug too, there is a way to fix it? i need it as fast as you can. tnxxxxx

HodayaGruz commented 3 years ago

https://stackoverflow.com/questions/48261430/where-do-these-margins-come-from this solve my problem, but i think its something that should be by default some how.

Talha-Jawed commented 3 years ago

i found it, write this code:

html : ''

adjust the values as you want.

stale[bot] commented 3 years ago

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.

AmdjedSanero commented 10 months ago

i found it, write this code:

html : ''

adjust the values as you want.

thank you its working