Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Html2pdf ignoring css, but not on all servers #6

Open
stefanofinetti opened this issue Sep 21, 2022 · 0 comments
Open

Html2pdf ignoring css, but not on all servers #6

stefanofinetti opened this issue Sep 21, 2022 · 0 comments

Comments

@stefanofinetti
Copy link

Hello. The issue is quite strange.

On a Ubuntu 22.04 hosted on google, this code:
$file = $pdf->generatePdf(view('contratto.output', [ 'contratto' => $contratto, 'allegati' => $allegati, 'preventivo' => $preventivo, 'documento_fronte' => $documento_fronte, 'documento_retro' => $documento_retro, 'cf_fronte' => $cf_fronte, 'cf_retro' => $cf_retro, 'prodotti' => $prodotti, 'cliente' => $cliente, 'isPDF' => true, ]));
works fine and generate a pdf with styles (bootstrap5 from metronic admin theme).

On a different hosted machine, same code (both update with git pull from my git repo), the pdf generated is completely without any style.

It seems that in the second case, it can't reach the external css file but this is quite absurd.

Is there any way to debug the process of creating the pdf in order to understand what's happening when loading the view?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant