Obsidian - Linking to PDFs (Patreon)
Content
In this video we look at how you can use PDFs from within Obsidian including how to create links directly to specific pages within a pdf directly from your notes. No need to alt-tab to another window when you can link the pdfs directly from your notes!
- Link to pdf with preview: ![[filename.pdf]]
- Link to pdf without preview: [[filename.pdf]]
- Link to specific page: [[filename.pdf#page=5]]
PDF Catalogue (Requires Dataview Plugin)
You can use DatabiewJS to query pdf's within your vault. This code will list all pdfs within your vault.
```dataviewjs
const pdfFiles = app.vault.getFiles().filter(file => file.extension === 'pdf')
dv.list(pdfFiles.map(file => dv.fileLink(file.path)))
```
PDF Catalogue with Folder (Requires Dataview Plugin)
You can use DatabiewJS to query pdf's within your vault. This code will list all pdfs within a specific folder. In this example the 'z_Assets' folder is being referenced.
```dataviewjs
const pdfFiles = app.vault.getFiles().filter(file => file.extension === 'pdf' && file.path.includes('z_Assets'))
dv.list(pdfFiles.map(file => dv.fileLink(file.path)))
```
Get Obsidian - https://obsidian.md/
Best places to find fellow Obsidian TTRPG Users:
Official Discord- https://discord.gg/obsidianmd
Join Facebook Community- https://www.facebook.com/groups/obsidianttrpgusers
I host all my tutorials and supporting files on my Patreon. Membership also gives you access to my private Discord server, a training Vault and personal support and engagement.
Support Me To Make More Content! - https://www.patreon.com/JPlunkett
Files
Previews only