wch / webshot

Take screenshots of web pages from R
http://wch.github.io/webshot/
227 stars 40 forks source link

Appshot text colour not rendered #103

Open elliefewings opened 3 years ago

elliefewings commented 3 years ago

Hi team,

I have a curious issue. I created a shiny app which (amongst other things) produces a report which I then store as a PDF using your appshot function.

I have just added a small warning that appears at the top of the report if the input data is not good quality. This message appears in different colours depending on the data quality and is written in shiny in html. Interestingly, although this works perfectly in the app, it is not rendered in the appshot pdf. If I put a delay on the appshot, then quickly check the app address that appears here Listening on https:\..., the colour generation works as demonstrated by the screenshot below:

image

However you can see in the generated PDF the text appears in black (although you can see the image below has colour).

image

Any idea how this could be happening? Happy to share code if needed although may take some time to simplify.