[英]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.