README file from
GithubFit PDF
Fit PDF is an Obsidian plugin that opens PDF files using Fit Height by default instead of Fit Width.
Obsidian's built-in PDF viewer currently initializes PDFs at page-width. This plugin switches newly opened PDFs to page-height, so an entire page fits vertically in the reading pane.
Features
- Sets newly opened PDF views to Fit Height.
- Applies exactly once per opened PDF file, so manual zoom changes afterward are not repeatedly overridden.
Installation
-
Clone this repository.
-
Copy these files into your vault:
YOUR_VAULT/.obsidian/plugins/fit-pdf/main.js YOUR_VAULT/.obsidian/plugins/fit-pdf/manifest.json YOUR_VAULT/.obsidian/plugins/fit-pdf/versions.json -
In Obsidian, open Settings -> Community plugins.
-
Turn off Restricted mode if needed.
-
Enable
Fit PDF. -
Reopen a PDF.