obsidian-auto-link-title icon indicating copy to clipboard operation
obsidian-auto-link-title copied to clipboard

Add option for PDFs

Open finnBsch opened this issue 10 months ago • 2 comments

I use this plugin to fetch links to academic literature online. Sometimes, this link will lead to a .pdf file. Currently, this yield "request rejected". Would it be possible to add this feature for .pdfs?

finnBsch avatar Apr 11 '24 07:04 finnBsch

Unfortunately we'd have to download the whole pdf to be able to attempt to extract a title out of it.

Hypothetically we could do something less bandwidth intensive like using the filename as the link title, would that work for you?

Say http://www.fakesite.com/This_is_the_file.pdf becomes [This_is_the_file.pdf](http://www.fakesite.com/This_is_the_file.pdf)

zolrath avatar Apr 17 '24 00:04 zolrath

I see. Unfortunately, that won't really help in my case - I am referring to arxiv articles (e.g. https://arxiv.org/pdf/2206.08077.pdf) where the pdf file name is pretty much useless, I'd rather want the pdf title. I guess it should be possible to find this in the PDF's metadata, can one access that without downloading the whole pdf?

finnBsch avatar Apr 17 '24 09:04 finnBsch