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

Item's background colors is not showing in ios

Open AzizKizgin opened this issue 1 year ago • 8 comments

it is my code. I give background-color for style. Screenshot 2023-08-11 at 12 05 39

for android it my pdf is Screenshot_1691744855

for ios Simulator Screenshot - iPhone 14 Pro - 2023-08-11 at 12 05 57

AzizKizgin avatar Aug 11 '23 09:08 AzizKizgin

hi, may i know your path for IOS ?

im having issue to store pdf in device

afizboltz avatar Aug 31 '23 08:08 afizboltz

@AzizKizgin Have you found a solution ? I've got the same issue and it's really annoying.

@afizboltz On my side, for iOS, I use the react-native-share so the user can save it anywhere he wants.

sefam-stoussaint avatar Sep 04 '23 09:09 sefam-stoussaint

@AzizKizgin Have you found a solution ? I've got the same issue and it's really annoying.

@afizboltz On my side, for iOS, I use the react-native-share so the user can save it anywhere he wants.

`@media print {

  • { -webkit-print-color-adjust: exact !important; } }`

I just added this and issue fixed.

AzizKizgin avatar Sep 04 '23 10:09 AzizKizgin

Works perfectly, thanks

sefam-stoussaint avatar Sep 04 '23 11:09 sefam-stoussaint

@AzizKizgin Have you found a solution ? I've got the same issue and it's really annoying. @afizboltz On my side, for iOS, I use the react-native-share so the user can save it anywhere he wants.

`@media print {

  • { -webkit-print-color-adjust: exact !important; } }`

I just added this and issue fixed.

Same issue here and this solution works for me! thanks!

lylong90 avatar Sep 25 '23 02:09 lylong90

@media print { * { -webkit-print-color-adjust: exact !important; } }

olrtg avatar Oct 26 '23 13:10 olrtg

@media print { * { -webkit-print-color-adjust: exact !important; } }

Can you please tell where to put this line in the html content

Tusharthakur0977 avatar May 18 '24 15:05 Tusharthakur0977

@Tusharthakur0977 inside a <style> tag.

olrtg avatar May 18 '24 21:05 olrtg