Closed infact closed 4 years ago
While PDFs are rendered in a browser tab, they are not webpages, which means the extension cannot run. Unfortunately there is no way to prevent the context menu from appearing. Sorry for this.
Could the extension work with PDFs rendered using PDF.js? I think PDF.js works by translating the PDF into HTML (see screenshot below), and that Firefox opens PDFs using PDF.js by default.
PDF.js in this case is an implementation detail of a specific vendor's PDF viewer, but not generalizable to all vendors. If this use case is essential for you, you can for the extension.
Did it actually work for pdf file(opened in chromium).? It did not work for me. For HTML files it is working fine. For PDF file opened in chrome/chromium, it will show the context menu to "copy link to selected text" but actually no link is getting copied.