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
Share on other sites

  • 4 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.