Navigation: More Advanced Procedures > Using Context-Sensitive Help Named destinations in PDF |
Scroll Prev Top Next More |
When Help+Manual generates PDF documents it automatically exports a number PDF anchors known as "named destinations" for targets in the document. These destinations are similar to topic anchors in HTML documents. You can use these destinations as targets in hyperlinks to the PDF files.
Named destinations are only generated if you generate an interactive PDF document. |
|
You can create links to both page numbers and "named destinations" in PDF documents. The procedure is the same for links that will be used in PDF files and in WebHelp output. Named destinations are jump targets that work like anchors. These links will work in PDFs created by Help+Manual and in WebHelp created by Help+Manual, but not in CHM files. The Microsoft CHM viewer does not support the link format needed to jump to destinations in PDF files. A link to a PDF in a CHM file will simply open the PDF at the first page. See Named destinations in PDF for details on the named destinations created in PDFs by Help+Manual and more background information. Use normal topic links for targets in the current documentNote that named destinations are only needed for links between two different PDF files or from other applications or documents. Use normal topic links to jump to targets within your Help+Manual projects (i.e. from one topic to another). You don't need to use named destinations for this. Requirements:•File Links are required for linking to PDFs: •Set the PDF to "interactive" to use named destinations:
|
Links to named destinations in PDF from Help+Manual WebHelpWhen creating links to named destinations in PDF files from WebHelp you can use exactly the same procedure and syntax as for links from PDF files. Create a file link and follow the instructions above. Links to named destinations in PDF from other HTML filesThe syntax is also the same for links to named destinations in other HTML files not generated by Help+Manual. Just create a hyperlink using the same pdf_file.pdf#nameddest=xxxx and pdf_file.pdf#page=yy syntax for the href target of the link as you use in Help+Manual, where xxxx is the named destination and yy is the page number. |
You cannot link to named destinations in PDFs from a page in a CHM file. The Microsoft CHM viewer will block all attempts to do this. You can only use a normal file link to open the PDF file at the first page. That is the only option available. This is a limitation of the CHM format and the Microsoft CHM viewer. Help+Manual cannot do anything to change this (and the PDF must be in the same folder as the CHM to open at all). |