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?
Problem was in
wkhtmltopdf
binary withqt
.