Hello,
I found the solution to your request on dokuwiki.org:
https://www.dokuwiki.org/images
"To link images to other resources, simply pipe that link into the
image, as you would with any other text."
Example:
[[ :path:to:file.pdf |{{path:to:image.png?200|}}]]
will create an image which will open a pdf.
Have fun.
Greets
Richard
Am 15.06.20 um 14:11 schrieb Michael Sy.:
I have image on my page, and when clicked, a pdf file should be
opened/downloaded. [...]
The intended way to provide PDF files is the Media Manager.
https://www.dokuwiki.org/media_manager
BTW: Via forum.dokuwiki.org you probably would have gotten an answer faster.
HTH - Michael Sy.