Answers for "Image not found or type unknown in pdf"

PHP
0

Image not found or type unknown in pdf

public function pdf()
{
    $users = User::get();
    $pdf = PDF::loadView('pdf', compact('users'));
    $pdf->getDomPDF()->setHttpContext(
        stream_context_create([
            'ssl' => [
                'allow_self_signed'=> TRUE,
                'verify_peer' => FALSE,
                'verify_peer_name' => FALSE,
            ]
        ])
    );

    return $pdf->download('Users.pdf');
}
Posted by: Guest on October-13-2020

Code answers related to "Image not found or type unknown in pdf"

Browse Popular Code Answers by Language