i'm trying create internal link in pdf using tcpdf
i create link @ start of document:
$pdf = new manualpdf (); $link = $pdf->addlink(); $pdf->setlink($link); and create link later:
$pdf->write(0,'click here',$link); however doesn't work, , click here text doesn't appear clickable on pdf (cursor caret).
any guidance?
edit
manualpdf extension of fpdi, sorry should have mentioned originally
from documentation, can use write() method on tcpdf object achieve this.
for example:
//line height $lh = 10; //indicates if cell background must painted (true) or transparent (false). $bg = false; //l or empty string: left align (default value) $align = 'l'; //if true set cursor @ bottom of line, otherwise set cursor @ top of line. $ln = true; $link = 'http://www.example.com/'; $tcpdf->write($lh, 'example link', $link, $bg, $align, $ln); would write line text google (left-aligned , line break, added better example).
this better!
Comments
Post a Comment