Is there a way to show pdf file name while it is displaying?

What I’m trying to do

I searched the forum but there was no similar topic.

Things I have tried

I tried to check the setting but there was no setting for this.

Not that I have ever found. My workaround is to reference the PDF twice:

### [[Name of PDF.pdf]]

![[Name of PDF.pdf]]

I suspect it might be possible for a CSS snippet to prevent the embed link from being hidden.

1 Like

That method comes unrealistic when there are a lot of pdfs to mark on

Thank you for your reply. I’ll probably try that

You may have gotten this already, I just noticed the topic, but you could try this CSS snippet. Adjust the font-size, etc., as desired.

.internal-embed.pdf-embed:not(.media-embed)::before {
    content: attr(alt);
    font-size: 0.9em;
    font-weight: 600;
    color: grey;
    padding-bottom: 2px;
}

Obsidian_Qgxk93rD3d

1 Like