简体   繁体   English

wicked_pdf创建到本地文件的超链接

[英]wicked_pdf create hyperlinks to local files

I wan't to create a PDF document, which contains hyperlinks to local files. 我不会创建包含本地文件超链接的PDF文档。 Eg when the PDF is downloaded, along with some files, the PDF contains hyperlinks to these files. 例如,当下载PDF以及一些文件时,PDF包含指向这些文件的超链接。 Is this possible to achieve, and if so, how? 这有可能实现吗?如果可以,如何实现?

You could try the following. 您可以尝试以下方法。 This method works in general for linking local files to HTML documents. 通常,此方法适用于将本地文件链接到HTML文档。

<a href="file:///C:\Programs\sort.mw">Link 1</a>
<a href="file:///C:\Your File Location">Link 2</a>

Notice the file:/// (3 slashes) before the location. 请注意该位置之前的file:/// (3个斜杠)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM