I tried to place a link to a PDF. (Link to File...)
The file is copied into the working direktory. But there is
no entry in the Baggage. (I don't know whether it should be).
The project compiles normally, but the link does not work,
i.e. it produces a "The page cannot be shown".
I can place the PDF wherever I want, it does not work.
What's wrong?
Thanks for any hint.
Walter
It crosses my mind that you may not want the PDF to be
included in baggage. For example, if the PDF is from another source
that may be updated separately from your CHM file. If you want it
to be an extenal file, but open in the help viewer, you would use
the parser function (documented in Help Workshop's help file). I
can provide more details if this is what you want to do.
Thanks for all answers! RH obviously was "in a blue funk", as
Leon suggested. I had to add the file manually to the baggage. Now
it works so far.
What John mentioned would be an even better and preferable
solution. So, John, if you don't mind, let me take part of your
knowledge ...
The parser function (attached) was developed by Microsoft to
open external files. To implement it, you need to use the True Code
editor and put the function in the HEAD section and then go to
where you want the link and insert <A NOHREF
ONCLICK="parser('filename.pdf')">Link text</A>. I usually
put a FONT in to make the link text blue and underlined like a
normal link as well.
My old version of RoboHelp's WYSIWYG editor doesn't like
anchors with NOHREF and will change it to <A>, which doesn't
do anything. I think it should survive in newer releases.