typesetsh / laravel-wrapper Goto Github PK
View Code? Open in Web Editor NEWtypeset.sh wrapper for Laravel 7 - 11
Home Page: https://typeset.sh/en/
License: MIT License
typeset.sh wrapper for Laravel 7 - 11
Home Page: https://typeset.sh/en/
License: MIT License
Hey I'm getting the following error when I bump typesetsh to 0.24.9 from 0.24.5.
I thought maybe it has something to do with the $data associative array I pass to
Pdf::make('pdf.summary.main', $data);
But removing $data and passing nothing the error still persists.
For now I've locked my version to 0.24.5 to prevent the issue but I want to use tailwind css classes and it looks like 0.24.9 would allow for at least the colors to work since rgb() now allows no commas syntax.
I'm using
Laravel 10.10.1
{
"message": "Only arrays and Traversables can be unpacked",
"exception": "TypeError",
"file": "/Users/*/Documents/proj/*/vendor/typesetsh/typesetsh/src/HtmlToPdf/Renderer.php",
"line": 195,
"trace": [
{
"file": "/Users/*/Documents/proj/*vendor/typesetsh/typesetsh/src/HtmlToPdf/Renderer.php",
"line": 63,
"function": "generateStack",
"class": "Typesetsh\\HtmlToPdf\\Renderer",
"type": "->"
},
{
"file": "/Users/*/Documents/proj/*/vendor/typesetsh/typesetsh/src/HtmlToPdf.php",
"line": 53,
"function": "run",
"class": "Typesetsh\\HtmlToPdf\\Renderer",
"type": "->"
},
{
"file": "/Users/*/Documents/proj/*i/vendor/typesetsh/laravel-wrapper/src/Typesetsh.php",
"line": 37,
"function": "render",
"class": "Typesetsh\\HtmlToPdf",
"type": "->"
},
Hey how does one give the pdf renderer access to fetch assets stored in a s3 bucket?
I've tried adding the bucket URI to the allowed directories.
Hi, I can't get custom fonts working. They’re in the public directory (eg. /public/fonts/Inter-Regular.ttf
) which is an allowed directory as in the default configuration:
'allowed_directories' => [
public_path(),
],
'base_dir' => '/',
In my CSS I've set the following:
@font-face {
font-family: "Inter";
src: url("/public/fonts/Inter-Regular.ttf") format("ttf");
/* I also tried src: url("/fonts/Inter-Regular.ttf") format("ttf"); */
font-weight: 400;
}
But I had no luck. I also tried using .woff. Do you have any idea what the problem could be?
PS: I love your package! ❤️
Hey is there a way to omit the following font files from this library?
Found under
/vendor/typesetsh/font-noto/fonts/sans/
NotoSansCJKsc-Bold.otf
NotoSansCJKsc-Regular.otf
NotoSansCJKsc-Light.otf
Together these are equal to ~48MB of size. Which when working with laravel vapors 50MB application upload limit does not bode well.
I was trying to use the package on PHP 8.0 and got the following error message:
Deprecated: Return type of Typesetsh\Css\Grammar\AtRules::offsetSet($name, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in …/css/src/Grammar/AtRules.php on line 72
Deprecated: Return type of Typesetsh\Css\Grammar\AtRules::offsetUnset($name) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in …/css/src/Grammar/AtRules.php on line 80
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.