• Packages
  • Themes
  • Documentation
  • Blog
  • Discussions
Sign in

pdf-viewer

PDF viewer based on PDF.js
  • #bacadra
  • #pdf
  • #viewer
  • #synctex
  • #latex
bacadra
403
1
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

pdf-viewer

title-pic

PDF viewer for Atom. It is a wrapper around Mozilla's PDF.js library including its viewer application, adapted for the Atom environment.

PDF files can be opened from the Atom user interface, e.g. from the project tree view, or programmatically through atom.workspace.open(uri). The package watches for file changes and reloads the PDF if necessary. Viewer panes are persistent across Atom runs. The uri consist of path to file and optional parameters.

Style

The style of the documents has been adapted to the theme in Atom. As the style changes, you may notice the menu colours change. An additional option has been introduced to invert the colours of the document itself. To invert the document colours change the options in the package settings, use the pdf-viewer:invert-mode from command-palette or press the F8 to change it in active file.

title-pic

Keyboard shortcuts

The keyboard shortcuts inside the PDF.js viewer have remained unchanged. It is not possible to change these shortcuts from within Atom. For more information, see default keymap:

  • The Home, End, PageUp, PageDown and all arrow keys can be used to navigate the document;
  • Next page: N, J, Space (presentation mode only), Enter (presentation mode only) or LeftClick (presentation mode only);
  • Previous page: P, K, Shift + Space (presentation mode only), Shift + Enter (presentation mode only) or Shift + LeftClick (presentation mode only);
  • User interface buttons or Ctrl + MouseWheel can be used to change the zooming level;
  • Zoom in: Ctrl + +, Ctrl + =;
  • Zoom out: Ctrl + -;
  • Restore normal zoom: Ctrl + 0;
  • Rotate the document clockwise: r;
  • Rotate the document counterclockwise: Shift + R;
  • Activate presentation mode: Ctrl + Alt + P;
  • Enable the hand tool: h;
  • Enable the text selection tool: s;
  • Move focus to the 'go to page' box: Ctrl + Alt + G;
  • Find text in the document: Ctrl + f;
  • Find next occurrence of text in the document: Ctrl + G;
  • Find previous occurrence of text in the document: Shift + Ctrl + G;
  • Print the document: unset;
  • Download the document: Ctrl + S;
  • Open a file: Ctrl + O;
  • Use F4 to toggle the visibility of the sidebar;

After showing the sidebar, click on the "Show document outline" button (Show document outline) to show the document outline (if the PDF file has one). Nested outline items can be expanded/collapsed by clicking on the triangles at the left of an item. To expand/collapse all items under the selected item, press Shift while clicking on the triangle. Double-click on the "Show document outline" button (Show document outline) to expand/collapse all outline items.

Additional keyboard shortcuts has been introduced:

  • Open command-palette: Ctrl + Shift + P, F1;
  • Refresh content for current viewer: F5;
  • Auto-refreshing toggle for current viewer: Ctrl + F5
  • Invert colors for current viewer; F8:
  • Use SyncTeX and go .tex. file, if possible: RightClick;

URI options

The package supports additional options when opening. With them you can open on a specified page, set the initial zoom, open the file on a named destination or select a sidebar state. For more information see pdf.js viewer options.

LaTeX

This package supports SyncTeX .tex and .pdf in both directions. From a text file .tex to .pdf use the command pdf-viewer:synctex from command-palette, while from .pdf to .tex you need to mouse RightClick.

For PDF files created by TeX using the --synctex=1 option, a click on the PDF will take you to the corresponding source code. If the synctex command (part of modern TeX distributions) is in your PATH, this will work out of the box, otherwise you can configure the path to the synctex binary in the settings.

The viewer can remember the page before refresh and set it initialy after refresh.

sofi-key

SOFiSTiK

This package is adapted to support sofistik-tools for help functions using the search keywords at current scope. For more information see the package sofistik-tools.

sofi-key

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by