It is possible to create links during the creation of a template (beginTemplate() / endTemplate()):
$pdf->beginTemplate();
$pdf->Write(12, 'LINK', 'https://www.setasign.com');
$pdf->endTemplate();
but the link is missplaced then. We should prohibit links in template as we do in FPDI.