TCPDF - How to hyperlink text to external document using TCPDF -


does know how hyperlink text within pdf external attached document. using annotation() , bookmark() functions include links in sidebar, can't seem figure out how provide link within pdf document itself. appreciated. bad, new stack , screen in wouldn't let me use line breaks - in wrong place. sorry that.

the code link needs go is:

$txt.=' '.stripslashes($contents).'';

  • i use writehtml() process file
  • text within contents string needs replaced text link attached document.

the sidebar code use is:

$pdf->annotation(-10, -10, 0, 0, $fndesc, array('subtype'=>'fileattachment', 'name' => 'pushpin', 'fs' => $attachment));

$pdf->bookmark($fndesc, 0, 0, '', 'b', array(0,64,128), -1, $fn);

the real issue replace pushpin inside of primary document (not sidebar) linked text.

thank responding.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -