symfony knp_snappy.pdf doesn't make link in a-tag

296 views Asked by At

This is my code:

$html = $this->renderView('@App/pdf/default.html.twig', [
    'item' => $item
]);
return new PdfResponse(
    $this->get('knp_snappy.pdf')->getOutputFromHtml($html),
    StringManipulation::slugify($item->getName()) . '.pdf'
);

That's show tag a in pdf-file like a text, not link. How can i make it as link?

1

There are 1 answers

0
alias On

Problem was in wkhtmltopdf binary with qt.