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 document
Note 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:
You must use the File Link option for creating links to targets inside PDF files. The Internet Link option will not always work correctly, even in WebHelp.
•Set the PDF to "interactive" to use named destinations:
If the PDF you are linking to is created with Help+Manual it must be generated using the "interactive PDF" option in your PDF settings. Named destinations are only generated for interactive PDF documents.
You need to create a file link with the destination added to it to link to a destination in a PDF document. Internet links will not work correctly, not even in WebHelp.The syntax is the same for links that are going to be in PDF files and WebHelp files. The links to the PDF files will also work in CHM files, but they will only open the PDF document; they will not jump to the destination in the PDF from a link in a CHM.
Procedure:
1.Follow the instructions for inserting a file link and enter the name of the PDF file you want to link to.
2.Add #nameddest= after the file name, followed by the name of the named destination in all lower case characters. See this topic for details of the named destinations you can jump to.
Examples:
myfile.pdf#nameddest=toc (jumps to the Table of Contents in the PDF)
myfile.pdf#nameddest=welcome_topic (jumps to the topic with the ID Welcome_Topic)
myfile.pdf#nameddest=custom1 (jumps to user-defined template section 1)
Special case: anchors:
Links to named destinations including anchors are a special case. They will only work in links in PDF files, not in links in WebHelp files. If you use a link with an anchor in WebHelp output the link will only open the PDF file at the first page.
Example:
In a PDF file, the following file link will jump to the anchor testanchor in the topic with the ID Welcome_Topic. In a WebHelp file it will only open the PDF at the first page.
myfile.pdf#nameddest=welcome_topic#testanchor
|
You need to create a file link with the page number added to it do link to a page number in a PDF document. Internet links will not work correctly, not even in WebHelp.The syntax is the same for links that are going to be in PDF files and WebHelp files. The links to the PDF files will also work in CHM files, but they will only open the PDF document; they will not jump to the page number in the PDF from a link in a CHM.
Important: The page number destinations in PDFs created by Help+Manual start counting at 0, so you must jump to the actual page number minus one. If you are jumping to pages in PDFs created by other tools you can usually jump to the actual page numbers.
1.Follow the instructions for inserting a file link and enter the name of the PDF file you want to link to.
2.Add #page= after the file name, followed by the page number:
myfile.pdf#page=123 (jumps to page 124)
myfile.pdf#page=0 (jumps to page 1, same as just opening the PDF file without a target)
myfile.pdf#page=11 (jumps to page 12)
|