IntelliJ PDF Viewer plugin adds support for viewing PDF files in IntelliJ-based IDEs. This plugin uses recently integrated (2020.2
) CEF (Chromium Embedded Framework) browser to render PDF documents with PDF.js library.
- Document navigation
- Presentation mode
- Text search*
- Document scaling
- Thumbnail view
- Sections list**
- Document information
- Auto-refresh on document change
- Pages spread (even/odd)
- Horizontal/vertical pages scroll directions
* Search will work only in text-based documents. For example, it won't work in all-images documents (books scans).
** Document should define sections list. Otherwise, sections view won't be active.
- Split-view code and documentation
- Previewing latex documents
- Presentations with live-coding
- ...
-
Using IDE built-in plugin system:
Preferences > Plugins > Marketplace > Search for "PDF Viewer" > Install Plugin
-
Manually:
Download the latest release and install it manually using Preferences > Plugins > ⚙️ > Install plugin from disk...
Starting from 2020.2 EAP
(more precisely 202.4357.23-EAP-SNAPSHOT
) all IDEs should have bundled JCEF with ide.browser.jcef.enabled
registry flag set to true
. So the plugin should just work. If it doesn't work, please check if markdown plugin works fine. Check it's preview providers and confirm that JCEF is present.
You can't run this plugin without modifying PdfEditorPanelProvider
with builds before 2020.2 EAP
. If you really want to - you should change JCEF presence detection with code from early versions (look at 0.0.4
tag).
Since CEF browser is still an experimental feature, there is a high chance that it is not shipped by default with your IDE. To be able to use CEF functionality you need to switch to version of JBR that supports it. See this issue for more details. You can learn how to switch IDE runtime here.
To build plugin use buildPlugin
gradle task. This will produce ready to use zip
archive with plugin contents.
To run/debug IDE with this plugin runIde
task should be used.
This plugin is still in it's early stage, so some major bugs can occur.