xwikisas / macro-pdfviewer

0 stars 4 forks source link

Add a copyable link of the PDF file location in the macro toolbar #40

Closed js-ddev closed 2 years ago

js-ddev commented 2 years ago

Currently the macro doesn't allow easily to copy the link of the source file which is displayed. It would be useful to and share the link to the file or open the file in the browser for example.

The proposal is to display an icon in the toolbar which copies the link in the clipboard, for example:

share-link-feature

Another proposal would be to display also the link directly, like XWiki does for the page reference in the information tab, but with an absolute link to the PDF file: image

Link to the icon used in the mockup: https://www.flaticon.com/premium-icon/link_1824953

In both cases, there should be a tooltip hovering the icon (example: "Copy link to the PDF file to the clipboard") and an XWiki notification after the link has been copied (example: '"PDF file link copied to the clipboard")