Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Image not showing in pdf #12

Open
reach2rahulbharti opened this issue Aug 25, 2020 · 1 comment
Open

Image not showing in pdf #12

reach2rahulbharti opened this issue Aug 25, 2020 · 1 comment

Comments

@reach2rahulbharti
Copy link

reach2rahulbharti commented Aug 25, 2020

Image not showing while generating pdf

I am using controller for generating HTML to pdf not using a template. i have add html in controller function

@bogdanpisica
Copy link

$logo = "PATH_TO_IMAGE"
$typee = pathinfo($logo, PATHINFO_EXTENSION);
$dataa = file_get_contents($logo);
$base64logo = 'data:image/' . $type . ';base64,' . base64_encode($dataa);

try to use base64 for images in PDF

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

No branches or pull requests

2 participants