PDF Viewer selectively turned on and off per note

Joplin 2.14.19 (prod, linux)

Client ID: 9959465eea794e60b1b95760c308ca91
Sync Version: 3
Profile Version: 46
Keychain Supported: No

Revision: 971c4e5

I want to be able to have the PDF Viewer function for most notes, but not for all notes. Is this possible? And if not, can we make it possible?

For example, I have a note named "resumes" (as in résumés). It contains links to a markdown version, a .docx version, and a PDF version of my resume. I don't want it to render the PDF in the renderer frame. But I want other notes with links to PDFs to render. And I have a some notes that contains a lot of information where only one bit is a link to a PDF. I don't those to render the PDF viewer either.

Thanks. -t

It should be possible to hide the PDF viewer with CSS for just that note. For example, by adding the following to the end:

	.media-player.media-pdf {
		display: none;

Works. Sure. But … ew. #kludge

The easiest option...

would be to render the PDF as an image by preceding with an exclamation !, which will display a missing image icon and the link text instead of the PDF viewer (but it won't be clickable):


As an alternative to the previous suggestion...

you could add a title to the PDF you don't want to render, then use that title in the previously mentioned css to only target specific links:

[resumes.pdf](:/9959465eea794e60b1b95760c308ca91 "hidePDFViewer")
	a[title="hidePDFViewer"] .media-player.media-pdf {
		display: none;

(warning: this method was not tested by me)

1 Like