I used this technique to insert an image
Adding a dynamic image to a PDF using ColdFusion and iText
Now, I need to insert a link to a external URL at X/Y
and text inside with itext and ColdFusion.
Can someone help me do this?
Thanks.
I used this technique to insert an image
Adding a dynamic image to a PDF using ColdFusion and iText
Now, I need to insert a link to a external URL at X/Y
and text inside with itext and ColdFusion.
Can someone help me do this?
Thanks.
Here is rough example that works with CF9. There are probably more elegant methods, but this should give you the basic idea.
Note - IIRC CF8 uses an earlier version of iText (1.4). CF9 uses 2.1.0. So I am relatively certain it will not run "as is" with CF8. If needed, you can use the JavaLoader.cfc to run a later version.
Update: Modified to show one way of defining a specific font, size and color. The correct settings will vary depending on your system, desired font, encoding, etcetera.