[英]Can PDF notes/annotations include links to other pages in the PDF?
[英]Can visualforce's RenderAs PDF include href links?
我们正在使用SalesForce的renderAs =“ PDF”选项,并且希望生成的PDF正文中有一个可单击的链接。 这可能吗?
我已经尝试过<a href="..."> ... </a>,并且已经尝试过<apex:outputlink value =“ ...”> ... </ apex:outputlink>,两者均会导致在不可点击的呈现版本中。
有没有人找到一种在Salesforce引擎中起作用的方法?
<apex:page standardController="Opportunity" showHeader="false" renderas="pdf">
<apex:outputLink value="https://google.com">https://google.com</apex:outputLink>
<table border="0" cellspacing="0" cellpadding="0" width="100%" id="table1">
<tr>
<td>
...
更新 :这取决于浏览器。 Firefox不允许您单击链接,而Google Chrome允许。
您尝试在PDF中呈现哪种类型的链接(相对链接)? 使用outputlink,我以前有相同的行为,但只适用于相对链接。
使用完整的URL应该可以显示超链接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.