LaravelDaily/laravel-invoices

pdf file size

tjhunkin opened this issue · 3 comments

is it possible to reduce the pdf file size generated?

mc0de commented

It depends on your dompdf configuration.

You may try to add enable_font_subsetting flag to config/invoices.php and see if it helps.

'dompdf_options' => [
    'enable_font_subsetting' => true,
],

I will leave this issue open for a while, maybe other people have more ideas.

That is way better 1MB to 174kb