在SHFB生成的.chm中包含PDF文件(HTML帮助文件1) [英] Including a PDF file in SHFB generated .chm (Html Helpfile 1)

查看:1079
本文介绍了在SHFB生成的.chm中包含PDF文件(HTML帮助文件1)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的沙堡文档中包含一个pdf文件.在.chm文件中单击时,用户应该能够导航到pdf.是否有可能做到这一点?我一直在搜索所有论坛,没有正确的答案. 我尝试在xml注释中使用href标记并提供pdf文件的网址.但是它将打开浏览器,而不是pdf文件. 有人做过吗?

I need to include a pdf file in my sandcastle documentation. The user should be able to navigate to the pdf on clicking it in the .chm file. Is it possible to do this? I've been searching all forums with no proper answer. I have tried using href tag in the xml comment and providing the url of the pdf file. But it opens the browser instead of the pdf file. Has anyone done this before?

推荐答案

我为您提供了下载链接:
http://www.help-info.de/files_download/CHM-example_project.zip

I have a download link for you:
http://www.help-info.de/files_download/CHM-example_project.zip

这来自我的"HTMLhelp-下载"部分(请参见下面的链接),您将找到完整的HH Workshop项目,当然还有生成的CHM文件.
www.help-info.de/en/Help_Info_HTMLHelp/hh.htm

This is from my "HTMLhelp - Download" section (see link below) and you'll find a complete HH Workshop project and of course the resulting CHM file.
www.help-info.de/en/Help_Info_HTMLHelp/hh.htm

(1)因此,请下载并保存到本地驱动器.
(2)请解压缩,然后您会找到一个CHM-example.chm文件.
(3)要打开此文件,请右键单击该文件,单击属性",然后单击取消阻止"并单击确定". (4)双击该文件,然后根据需要调整帮助窗口的大小
(5)打开节点"HTMLHelp示例"
(6)在目录中搜索链接到PDF ..",然后打开此主题
(7)请注意,主题本身包含特定信息.

(1) So, please download and save to your local drive.
(2) Please unzip and you'll find a CHM-example.chm file.
(3) To open this file right-click the file, click Properties, and then click Unblock and OK
(4) Double-click to the file and resize the help window for your needs
(5) Open node "HTMLHelp Examples"
(6) Search for "Link to PDF .." in the TOC and open this topic
(7) Please note that the topics themselves include specific information.

因此,根据您的需求更深入地研究代码.当然,您必须在编辑后再次编译CHM.

So, go deeper into the code for your needs. Of course you must compile the CHM again after editing.

希望就是这样;-)

请注意,从TOC到大众"之间存在棘手的链接.您可能需要在这里更深入地了解代码.

Note there are tricky links from the TOC to "Volkswagen". You may need to go deeper into code here.

Ulrich Kulle-Microsoft帮助MVP-(2007-2009)- http://www.help-info.de

Ulrich Kulle - Microsoft Help MVP - (2007-2009) - http://www.help-info.de

这篇关于在SHFB生成的.chm中包含PDF文件(HTML帮助文件1)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆