PDF Wrapper
unlistedby Kenneth LeFebvre
Wraps a PDF file with a markdown note using a configurable template.
PDF Wrapper
An Obsidian plugin that wraps PDF files in markdown notes using a configurable template.
What it does
Right-click any PDF in the file explorer and select Wrap PDF. The plugin will:
- Move the PDF to your vault's configured attachment folder (Settings > Files and links > Default location for new attachments)
- Create a markdown note with the same name in the PDF's original location, using your chosen template
- Resolve template placeholders via Templater (if installed) or the core Templates plugin
- Set any
attachmentorattachmentsfrontmatter property to a wikilink pointing to the moved PDF - Update embed links (
![[file.pdf]]) in the note to point to the PDF's new location
Setup
- Install and enable the plugin
- Go to Settings > Wrap PDF and select a template file
- Make sure your "Default location for new attachments" is configured in Settings > Files and links
Template tips
Your template can use any Templater or core Templates placeholders. If you want the note to track the PDF attachment, include a frontmatter property:
---
attachment:
---
Or as an array (useful if the note may have multiple attachments):
---
attachments: []
---
To embed the PDF in the note body, include:
![[{{title}}.pdf]]
The plugin will automatically update this to point to the moved PDF's location.
Installation
From Community Plugins
- Open Settings > Community plugins
- Select Browse and search for "Wrap PDF"
- Select Install, then Enable
Manual
- Download
main.js,manifest.jsonfrom the latest release - Create a folder
<vault>/.obsidian/plugins/wrap-pdf/ - Copy the downloaded files into that folder
- Reload Obsidian and enable the plugin in Settings > Community plugins
License
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.