Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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');
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Image #type #unknown #pdf
ADD COMMENT
Topic
Name
3+6 =