On Word 2003, this fails. The below might help anyone stuck on this and e.g. attempting a macro to fix seomhow
Using Edit Hyperlink
https://i.imgur.com/F9q9Jyi.png I create a hyperlink to
FAIL New PDF Document #.pdf
I enable Field Codes, and see:
{HYPERLINK "FAIL%20New%20PDF%20Document%20" \l ".pdf"}
The address is incorrect. Help
Field codes: Hyperlink field - Microsoft Support says:
Code:
\l
Specifies a location in the file, such as a bookmark, where this
hyperlink will jump.
Unsurprisingly an attempt to follow the link fails with:
I save as HTML, and get:
href="FAIL%20New%20PDF%20Document#.pdf">FAIL New PDF Document #.pdf</a>
Two more fails. Last space is missing. # is unencoded.
Patching to:
href="FAIL%20New%20PDF%20Document %23.pdf">FIX FAIL New PDF Document
#.pdf</a>
remedies on Firefox. On Chrome, I can't get /any/ local file link to open a
PDF locally, even having done Settings. I get just an empty tab titled
"Untitled".