Jump to content

Using TCPDF and FPDI


megglz

Recommended Posts

I am using TCPDF & FPDI together to create and merge PDF's. I create  a PDF with a link embedded in html and then merge it with another PDF. After merging, the link is only clickable if I pass in the link as

 

// Set some content to print

    $html = <<<EOD

<A HREF="http://www.helloworld.com">http://www.helloworld.com</A>

EOD;

$pdf->writeHTML($html, true, 0, true, 0);

 

It is no longer clickable if I pass in the link as

 

    $html = <<<EOD

<A HREF="http://www.helloworld.com">Visit Link</A>

EOD;

$pdf->writeHTML($html, true, 0, true, 0);

 

I would like to pass it in the above way as the actual link I'm using is very long/tedious looking.

 

Can anyone help here?

Link to comment
https://forums.phpfreaks.com/topic/227244-using-tcpdf-and-fpdi/
Share on other sites

  • 4 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.