Welcome to this Obsidian PDF to Markdown Converter! This plugin brings the power of advanced PDF conversion directly into your Obsidian vault. By leveraging the capabilities of Marker through a self-hosted API or by using the hosted solution on datalab.to, this plugin offers a seamless way to transform your PDFs into rich, formatted Markdown files, with support for tables, formulas and more!
Important
This plugin requires a Marker API endpoint to function. Without an endpoint, the application won't work.
You can find the related repositories here:
- Marker Project (AI model for PDF conversion)
- Marker API (API for self-hosting the conversion service)
- Marker API Docker Container (Container for self-hosting, needs Nvidia GPU)
- datalab.to (Hosted API for the Marker AI model, provided by the developer himself)
- OCR Capabilities: Convert scanned PDFs to rich markdown
- Formula Detection: Accurately captures and converts mathematical formulas
- Table Extraction: Preserves table structures in your Markdown output
- Image Handling: Extracts and saves images from your PDFs and includes them in the markdown
- Mobile Compatibility: Works on both desktop and mobile Obsidian apps
- Flexible Output: Choose between full content extraction or specific elements (text/images)
- Superior Extraction: Utilizes the Marker project's advanced AI model for high-quality conversions
- Mobile Accessibility: Unlike many converters, this works seamlessly on mobile devices (when the API is accessible)
- Customizable: Tailor the conversion process to your specific needs
- Obsidian Integration: Converts PDFs directly within your Obsidian environment
If you enjoy this plugin, feel free to star the repository and share it with others! When you want to support the development, consider buying me a coffee:
To use this plugin, you'll need:
- A working Obsidian installation
- Access to a Marker API endpoint (self-hosted or paid service)
-
Install the plugin in your Obsidian vault
-
(Optional) Set up the self-hosted Marker API:
- Use Docker on a machine with a solid GPU/CPU
- (Optional) Make the endpoint available to other devices (e.g., using Tailscale)
- Alternatively, host in the cloud or run the Python server as needed
-
Configure your Marker API endpoint in the plugin settings
Solution | Pros | Cons |
---|---|---|
Hosted on datalab.to (recommended) | No setup required, fast and reliable, supports the developer and is easily accessible from anywhere | Costs a few dollars |
Self-Hosted via Docker | Full control over the conversion process, no costs for the API | - Requires a powerful machine, Setup can be complex for beginners |
Self-Hosted via Python | Easy to set up, no Docker required | May be slower than the Docker solution, less control over the process |
Setting | Default | Description |
---|---|---|
API Endpoint | 'datalab' | Select the API endpoint to use, either 'Datalab' or 'Selfhosted'. |
Marker API Endpoint | 'localhost:8000' | The endpoint to use for the Marker API. Only shown when 'Selfhosted' is selected as the API endpoint. |
API Key | - | Enter your Datalab API key. Only shown when 'Datalab' is selected as the API endpoint. |
Languages | - | The languages to use if OCR is needed, separated by commas. Only shown when 'Datalab' is selected as the API endpoint. |
Force OCR | false |
Force OCR (Activate this when auto-detect often fails, make sure to set the correct languages). Only shown when 'Datalab' is selected as the API endpoint. |
Paginate | false |
Add horizontal rules between each page. Only shown when 'Datalab' is selected as the API endpoint. |
New Folder for Each PDF | true |
Create a new folder for each PDF that is converted. |
Move PDF to Folder | false |
Move the PDF to the folder after conversion. Only shown when 'New Folder for Each PDF' is enabled. |
Create Asset Subfolder | true |
Create an asset subfolder for images. |
Extract Content | 'all' | Select the content to extract from the PDF. Options: 'Extract everything', 'Text Only', 'Images Only'. |
Write Metadata | true |
Write metadata as frontmatter in the Markdown file. |
Delete Original PDF | false |
Delete the original PDF after conversion. |
This plugin wouldn't be possible without the incredible work of:
- Marker Project: The AI model powering the conversions
- Marker API: The API that enables self-hosting of the conversion service
A huge thank you to these projects for their contributions to the community!
If you encounter issues related to the plugin itself, please open an issue in this repository. For problems with the conversion process or API, please refer to the Marker and Marker API repositories.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
Happy converting! 📚➡️📝