Closed dualklip closed 3 years ago
Were you able to figure this out? I'm running into the same issue. It might be puppeteer related:
UPDATE: Looks like by default Browsershot has $showBackground = false; Set it to true and your background should render.
`namespace Spatie\Browsershot;
...
/** @mixin \Spatie\Image\Manipulations */
class Browsershot
{
...
protected $showBackground = false;
protected $showScreenshotBackground = true;`
The issue I have now is that the handleBrowsershotOptions() is not passing the options.
protected function handleBrowsershotOptions()
{
$this->browsershot->$showBackground();
return $this;
}
Hi there!
I'm trying to use some Tailwind classes to customize background colors or text colors, but doesn't been reflected in the PDF. Others classes like
text-2xl
orfont-extrabold
are ok, but if you try to usebg-purple-300
nothing happen.As you can see the template has been simplifies as max as possible in order to don't have any conflictive CSS class
This is the result that I can see in my PDF