I have worked out what the problem is. I opened the PDF created by pandoc in a browser (Chrome, Edge) thinking that it would resolve the links relative to the directory I opened the PDF from but they don't do that.

When I open the output PDF with Adobe PDF Reader the links work and the referenced PDF opens in the viewer. 

Thanks to Huub de Beer for helping me troubleshoot this issue.

On Friday, September 15, 2017 at 10:14:01 AM UTC+10, Don Mankewich wrote:
I'm creating documents with markdown which include reference links to external PDF documents which exist in the same folder. When I use pandoc to generate a PDF document from my markdown, there appear to be links in the PDF when I hover over the labels but the external PDF does not open when I click the link. I don't get any warnings of skipped files. Here's an example of my markdown reference, it's in a numbered list. 

 [ats alert tables](ats-alert-database-diagram.pdf)

I have read that pandoc references relative file paths according to the directory where pandoc is executed but I'm running pandoc in the directory containing the external PDF so I shouldn't have to add further pathing information should I? I'm also using Harp JS to create a static site from my content and the link references work in Harp so I don't want to change that to support pandoc. Ideally the relative paths should for both pandoc and Harp.

Any suggestions? 

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/d15d300e-0cbd-429b-a5c3-cea0df745db0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.