barryvdh / laravel-snappy

Laravel Snappy PDF
MIT License
2.59k stars 289 forks source link

Header not show in ubuntu #503

Open muhammadjabir445 opened 1 year ago

muhammadjabir445 commented 1 year ago

I use this code but it only works on Windows while on Linux why doesn't the header appear

        $pdf = \PDF::loadView('export.export-pdf-inventory-delivery-dokumen',
        ['data'=>$data_inventory_delivery_detail,
        'data_inventory_delivery'=>$data_inventory_delivery,
        'model_size_array'=>$data_inventory_delivery_size]);

        return $pdf->setOption('header-font-size', 8)
        ->setOption('header-left', 'Header Left')
        ->setOption('header-right', ''.$data->doc_no.'-page [page]/[topage]')
        ->stream('Inventory_Delivery_'.$data_inventory_delivery->doc_no.'.pdf');

wkhtmltopdf 0.12.6

muhammadjabir445 commented 1 year ago

up

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any issues with PDF rendering itself that are not directly related to this package, should be reported on https://github.com/KnpLabs/snappy instead. When having doubts, please try to reproduce the issue with just snappy. If you believe this is an actual issue with the latest version of laravel-snappy, please reply to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.