Giter Club home page Giter Club logo

laravel-wrapper's People

Contributors

jsiefer avatar therouv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

bran921007

laravel-wrapper's Issues

After bumping to verion 0.24.9 from 0.24.5 - Error only arrays and Traversables can be unpacked when using facade

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": "->"
		},

Assets in a s3 bucket?

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.

Cache problem

Hello,

sometimes i get an error with caching.

fopen /myproject failed to open stream: No such file or directory
image

Thanks a lot!

How to use custom fonts

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! ❤️

Composer minimise filesize of fonts?

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.

Wrong return type in AtRules.php

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.