Menu

#563 writeHTMLCell does not create links for href

closed
nobody
None
5
2012-10-09
2011-05-03
No

If I have this string ' (See More) ' as part of an HTML string, and use writeHTMLCell(), the resulting PDF shows '(See More)', and it is the correct color for a link, but it is not a link. You can not click it.

Discussion

  • Nicola Asuni

    Nicola Asuni - 2011-05-03

    I'm unable to reproduce your problem.
    The following test is working fine:

    $html = 'TCPDF link';
    $pdf->writeHTMLCell(150, 0, '', '', $html, 0, 1, false, true, '', true);

    Be sure you are using the latest TCPDF version and check the default examples and source code documentation.

     
  • Timothy Reaves

    Timothy Reaves - 2011-05-03

    The issue ended up being I had TCPDF link instead of TCPDF link . Why would the tick versus quote cause the link to not be a link? I do not recall seeing that as part of the HTML standard. I must have missed that requirement in the TCPDF manual.

    Thanks for checking it out.

     
  • Nicola Asuni

    Nicola Asuni - 2011-05-03

    TCPDF requires double quotes for all HTML attributes.

     

Log in to post a comment.

MongoDB Logo MongoDB