Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item's background colors is not showing in ios #301

Open
AzizKizgin opened this issue Aug 11, 2023 · 8 comments
Open

Item's background colors is not showing in ios #301

AzizKizgin opened this issue Aug 11, 2023 · 8 comments

Comments

@AzizKizgin
Copy link

AzizKizgin commented Aug 11, 2023

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

@afizboltz
Copy link

hi, may i know your path for IOS ?

im having issue to store pdf in device

@sefam-stoussaint
Copy link

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

@AzizKizgin
Copy link
Author

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

@sefam-stoussaint
Copy link

Works perfectly, thanks

@lylong90
Copy link

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

@olrtg
Copy link

olrtg commented Oct 26, 2023

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

@Tusharthakur0977
Copy link

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

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

@olrtg
Copy link

olrtg commented May 18, 2024

@Tusharthakur0977 inside a <style> tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants