【发布时间】:2021-12-29 09:04:28
【问题描述】:
我使用 PDFlib 使用 PHP 创建 PDF 文件。我正在尝试打印一个带有外部网站链接的新行。代码sn-p是:
$slilink = 'a href="https://www.linkedin.com/in/watkanaidoo/">link to LinkedIn page /a>';
//(I leave off the preceding '<' notation to display correctly here)
$ly = $ly + 12;
pdf_show_xy($pdf, "", 12, $ly);
pdf_show_xy($pdf, "", 100, $ly);
pdf_show_xy($pdf, "", 180, $ly);
pdf_show_xy($pdf, $slilink, 320, $ly);
这会在 PDF 中显示一个显示整个字段的行,包括
如果我不使用 <a href=,那么 URL 会正确显示,但无法点击!
【问题讨论】: