# Disable attachments (PDF) inline preview

**URL:** <https://discourse.joplinapp.org/t/disable-attachments-pdf-inline-preview/13706>\
**Category:** Lounge\
**Created:** [8 January 2021 12:14 UTC](https://discourse.joplinapp.org/t/disable-attachments-pdf-inline-preview/13706 "2021-01-08T12:14:04Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![gozzilla78](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/gozzilla78/32/4948_2.png) [@gozzilla78](https://discourse.joplinapp.org/u/gozzilla78)\
**Post date:** [8 January 2021 12:14 UTC](https://discourse.joplinapp.org/t/disable-attachments-pdf-inline-preview/13706/1 "2021-01-08T12:14:04Z")

</div>

hello there!  
I heavily use tables with PDFs attached directly in the cells. Having inline preview is a bummer for me in those cases.

Is there a way to disable inline preview on a note-by (even better, attachment-by) case?

thanks!

---

<div class="post-metadata">

**Author:** ![Dave](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@Dave](https://discourse.joplinapp.org/u/Dave)\
**Post date:** [8 January 2021 12:23 UTC](https://discourse.joplinapp.org/t/disable-attachments-pdf-inline-preview/13706/2 "2021-01-08T12:23:25Z")

</div>

On an attachment by attachment basis use the following code wrapped around the pdf -

```auto
<details close>
<summary>Show pdf ...</summary>

[pdf here]

</details>

```

HTH

---

<div class="post-metadata">

**Author:** ![gozzilla78](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/gozzilla78/32/4948_2.png) [@gozzilla78](https://discourse.joplinapp.org/u/gozzilla78)\
**Post date:** [8 January 2021 12:28 UTC](https://discourse.joplinapp.org/t/disable-attachments-pdf-inline-preview/13706/3 "2021-01-08T12:28:16Z")

</div>

wow! great. thanks a lot.  
next -- it would be great to be able to do it for an entire note too.

---

<div class="post-metadata">

**Author:** ![laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@laurent](https://discourse.joplinapp.org/u/laurent)\
**Post date:** [8 January 2021 13:02 UTC](https://discourse.joplinapp.org/t/disable-attachments-pdf-inline-preview/13706/4 "2021-01-08T13:02:53Z")

</div>

That's a nice solution. I wonder if we should have this by default.

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [8 January 2021 15:55 UTC](https://discourse.joplinapp.org/t/disable-attachments-pdf-inline-preview/13706/5 "2021-01-08T15:55:10Z")

</div>

I think a menu item toggle like `Show note counts` would be great for `Show PDF preview`.

---

<div class="post-metadata">

**Author:** ![gozzilla78](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/gozzilla78/32/4948_2.png) [@gozzilla78](https://discourse.joplinapp.org/u/gozzilla78)\
**Post date:** [10 January 2021 04:48 UTC](https://discourse.joplinapp.org/t/disable-attachments-pdf-inline-preview/13706/6 "2021-01-10T04:48:17Z")

</div>

Thank you very much for the feedback. I thought about this, and I think that the best default behavior is inline preview ON (as it is at present) -- but a menu item toggle at three levels (1: global, 2: by note, 3: by attachment) would be EXTREMELY useful.

---

<div class="post-metadata">

**Author:** ![Nix](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@Nix](https://discourse.joplinapp.org/u/Nix)\
**Post date:** [4 July 2021 10:38 UTC](https://discourse.joplinapp.org/t/disable-attachments-pdf-inline-preview/13706/7 "2021-07-04T10:38:48Z")

</div>

_Edit_ I was mistaken see the [response](https://discourse.joplinapp.org/t/disable-attachments-pdf-inline-preview/13706/8)

I recently update to the latest joplin appimage (2.1.8) from an ancient version (1.4.19).

I've been extremely disheartened to discover forced previews of all PDF's with no option to turn them off. While an optional "generate hover preview on link hover" is something I would certainly find useful, the current behaviour is extremely intrusive and breaks the various tables I've built with stored PDF's for reference/archiving. Furthermore, it seems to regenerate the previews on every change, which is also a very poor behaviour.

I have tried the plugin here [GitHub - JJ-8/joplin-disable-pdf: Disables the PDF preview (and export) in Joplin for better performance](https://github.com/JJ-8/joplin-disable-pdf), but currently all that seems to do is disables the preview window. To be perfectly honest, it's PDF previews that should be the plugin, not the method to disable them.

The "\<details close\>" hack for working around this also isn't viable, as it doesn't work in tables. I also doubt it's ability to prevent regenerating the previews constantly.

Are there any plans to implement a method to turn this off? Joplin has been overwhelmingly my favorite editor so far, but this is going to force me to either stick with an old version or move to another markdown editor.

---

<div class="post-metadata">

**Author:** ![laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@laurent](https://discourse.joplinapp.org/u/laurent)\
**Post date:** [4 July 2021 10:59 UTC](https://discourse.joplinapp.org/t/disable-attachments-pdf-inline-preview/13706/8 "2021-07-04T10:59:58Z")

</div>

In Config =\> Markdown, you can turn it off.

---

<div class="post-metadata">

**Author:** ![Nix](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@Nix](https://discourse.joplinapp.org/u/Nix)\
**Post date:** [4 July 2021 11:14 UTC](https://discourse.joplinapp.org/t/disable-attachments-pdf-inline-preview/13706/9 "2021-07-04T11:14:43Z")

</div>

Thank you so much! I had completely missed it the first time around, and this thread had me believe there was no other way to deal with the issue.

For others the full path is: Tools-\>Options-\>Markdown-\>Enable PDF viewer (uncheck)

---

<div class="post-metadata">

**Author:** ![svenn71](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/svenn71/32/8702_2.png) [@svenn71](https://discourse.joplinapp.org/u/svenn71)\
**Post date:** [4 July 2021 11:22 UTC](https://discourse.joplinapp.org/t/disable-attachments-pdf-inline-preview/13706/10 "2021-07-04T11:22:37Z")

</div>

When I insert the

> ****
>
> tags, I get this expand arrow showing a textual help, but when I click the arrow, the span only expands the joplin link to be visible, not the previewer. Strange

---

<div class="post-metadata">

**Author:** ![Nix](https://avatars.discourse-cdn.com/v4/letter/n/a183cd/32.png) [@Nix](https://discourse.joplinapp.org/u/Nix)\
**Post date:** [4 July 2021 11:38 UTC](https://discourse.joplinapp.org/t/disable-attachments-pdf-inline-preview/13706/11 "2021-07-04T11:38:56Z")

</div>

Are you trying to replicate what I mentioned? To be more clear, here's what I found in my testing (note that you can/must escape tags and special characters by placing "\" in front.

The following:

> \<details close\>\<summary\>DataSheet\_S8030.pdf\</summary\>
> 
> [DataSheet\_S8030.pdf](:/6b2ed1ce6a60435bb295b688047de174)
> 
> \</details\>

Results in a full preview when opened

Whereas the following missing the new line between \</summary\> and the link:

> \<details close\>\<summary\>DataSheet\_S8030.pdf\</summary\>  
> [DataSheet\_S8030.pdf](:/6b2ed1ce6a60435bb295b688047de174)
> 
> \</details\>

Results in only the following displaying when opened

> [DataSheet\_S8030.pdf](:/6b2ed1ce6a60435bb295b688047de174)

_edit_ [Screenshot](https://discourse.joplinapp.org/uploads/short-url/4HdDcjQvCqHueBIfcZVW4RHzpCQ.png)

Not sure why that happens. Is this a bug I should make a new thread on or report as an issue on github?

---

<div class="post-metadata">

**Author:** ![svenn71](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/svenn71/32/8702_2.png) [@svenn71](https://discourse.joplinapp.org/u/svenn71)\
**Post date:** [4 July 2021 15:30 UTC](https://discourse.joplinapp.org/t/disable-attachments-pdf-inline-preview/13706/12 "2021-07-04T15:30:09Z")

</div>

It was the linefeed. Thank you.

---

<div class="post-metadata">

**Author:** ![MuliptisiousCandyBan](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/muliptisiouscandyban/32/6115_2.png) [@MuliptisiousCandyBan](https://discourse.joplinapp.org/u/MuliptisiousCandyBan)\
**Post date:** [22 November 2022 15:13 UTC](https://discourse.joplinapp.org/t/disable-attachments-pdf-inline-preview/13706/13 "2022-11-22T15:13:16Z")

</div>

A little late to the party, but just wanted to note something for people that might find this thread in the future that only want to disable it for a singular note, in the sense that the preview in the preview pane is hidden. Should that be what you want to do, the code below works per the date this is posted. Just inspect (Help → Toggle development tools) the PDF preview element to see if the classes have changed if it doesn't work in the future. Otherwise, use Nix's solution.

```nohighlight
<style>
	.media-pdf {
		display: none;
	}
</style>

```
