Replies: 1 comment
-
@randohinn Example: <html>
<head>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=Spartan:400,500,600,700&display=swap" rel="stylesheet">
<style type="text/css">
body {
color: white !important;
}
</style>
</head>
<body style="font-family: 'Spartan',sans-serif;">
//Add your svg code here
<svg xmlns="http://www.w3.org/2000/svg" width="34" height="34" fill="currentColor" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"></rect><circle cx="128" cy="104" r="32" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></circle><path d="M208,104c0,72-80,128-80,128S48,176,48,104a80,80,0,0,1,160,0Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path></svg>
<div style="position: fixed; z-index: 99; color: black; font-weight: 500; font-size: 1.5rem; top: 33vh; left: 22vw;">
{{ $data['location'] }}
</div>
<div style="position: fixed; z-index: 99; color: white; font-weight: 500; font-size: 1rem; top: 40vh; left: 22vw;">
{{ $data['date'] }}
</div>
</body>
</html> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a simple pdf template rendered from a view, for some reason, the colours are all wrong. This text is supposed to be white...
Full view:
I do use the helping facade from
VerumConsilium\Browsershot\Facades\PDF
to render, but I don't think that should make any difference,,,return PDF::loadView('tenant.pdf.advertisement', ['data' => $data])->ignoreHttpsErrors()->format('A4')->transparentBackground()->margins(0, 0, 0, 0)->inline('Ad.pdf');
Beta Was this translation helpful? Give feedback.
All reactions