簡體   English   中英

使用xsl-fo將鏈接放入PDF文件

[英]Put a link in a PDF file with xsl-fo

我使用FOP XSL-FO錨點答案中給出的代碼在我的xsl-fo代碼生成的PDF文件中放置一個鏈接。 我使用的代碼是

<fo:table-row font-size="8pt">
  <fo:table-cell text-align="left" number-columns-spanned="12" padding-left="0.1cm" padding-top="0.1cm" border-left="0.50pt solid black" border-right="0.50pt solid black"  >                       
    <fo:block>
        <fo:basic-link 
            external-destination="url('http://www.moga.mo.gov/mostatutes/stathtml/26000003921.html)" 
            color="blue" text-decoration="underline">
             http://www.moga.mo.gov/mostatutes/stathtml/26000003921.html
       </fo:basic-link> 
    </fo:block>
  </fo:table-cell>
</fo:table-row>

PDF文件中生成的鏈接是

file:///C:/Users/pondek/Appdata/Local/Microsoft/Windows/Temporary%20Internet%20Files/Content.IE5/NJ1Y1AFR/'http://www.moga.mo.gov/mostatutes/stathtml/26000003921.html

我不知道這是否重要,但是我正在使用Windows 7 Professional的PC上使用Rad 8.5。 任何幫助,將不勝感激!

我取消了結帳“。 應該是

external-destination="url('http://www.moga.mo.gov/mostatutes/stathtml/26000003921.html')"  

代替

external-destination="url('http://www.moga.mo.gov/mostatutes/stathtml/26000003921.html)"

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM