Annotations

Okular allows you to review and annotate your documents.

Okular's Annotations

Okular has two different kind of annotations:

Text annotations like Yellow Highlighter and Black Underlining can be used with files containing text (e.g. PDF).

Graphic annotations like Pop-up Note, Inline Note, Freehand Line, Highlighter, Straight Line, Polygon, Stamp, Underline, Ellipse, and Typewriter.

Graphic annotations are not limited to PDF files; they can be used for any format that Okular supports.

Using the Annotations menu, you can add a Pop up Note or any other kind of annotation to add or edit comments.

Okular has the "document archiving" feature. This is an Okular-specific format for carrying the document plus various metadata related to it (currently only annotations). You can save a "document archive" from the open document by choosing FileSave As and selecting Okular document archive in the Filter selector. Documents saved this way will get .okular as their filename extension. To open an Okular document archive, just open it with Okular as it would be e.g. a PDF document.

You can also save annotations directly into PDF files. You can use FileSave to save it over the current file or FileSave As... to save it to a new file.

Note

Note that adding, editing, or removing annotations may not be possible with DRM-enabled files.

Note

It is possible to undo or redo any annotation action by using the corresponding item from the Edit menu. It is also possible to undo the action by pressing Ctrl+Z and to redo a previously undone action by pressing Ctrl+Shift+Z.

You can configure the default properties and appearance of each annotation tool. Please refer to the corresponding section in this documentation.

Adding annotations

To add annotations to the document, you can use Quick Annotations button on the main Okular toolbar, or activate the annotation toolbar. This is done by either selecting ToolsAnnotations or pressing F6. Once the annotation toolbar is shown, just press one of its buttons or use keyboard shortcuts (keys from 1 to 9) to use that annotation.

The annotation toolbar helps you to make annotations with drawings, shapes, and text messages. You can use the annotation toolbar to mark up a document (e.g. add lines, ellipses, polygons, stamps, highlights, underlines etc.). The table below describes exactly what the default set of annotation toolbar buttons does.

Button Tool Name Description

Highlighter

Highlights text in the document with a given background color.

Click on the tool button, then click with the left mouse button and drag to highlight a text snippet.

It is possible to define the Type (Highlight, Squiggle, Underline or Strike out), Color, and Opacity for the highlighter. Just right-click on the highlighted text and select the Properties menu item.

Underline

Underlines text with a straight line.

Click on the tool button, then click with the left mouse button and drag to underline a text snippet.

It is possible to define the Type (Highlight, Squiggle, Underline or Strike out), Color, and Opacity for the underline. Just right-click on the underlined text and select the Properties menu item.

Squiggle

Underlines text with a squiggly line.

Click on the tool button, then click with the left mouse button and drag to squiggly underline a text snippet.

It is possible to define the Type (Highlight, Squiggle, Underline or Strike out), Color, and Opacity for the underline. Just right-click on the underlined text and select the Properties menu item.

Strike Out

Strikes out some text.

Click on the tool button, then click with the left mouse button and drag to squiggly strike out a text snippet.

It is possible to define the Type (Highlight, Squiggle, Underline or Strike out), Color, and Opacity for the underline. Just right-click on the underlined text and select the Properties menu item.

Typewriter

Adds text on a transparent background. This is useful for filling out forms lacking integrated editable text fields.

Click on the tool button, then click with the left mouse button where you wish to add the top-left corner of the text, then drag to place the bottom-right one. Type some text, then click on the OK to save it, Clear to clear the text and start over, or Cancel to cancel.

It is possible to define the Font and Text color for the text. Just right-click on the typewriter text created and select the Properties menu item.

Inline Note

Draws an inline note. The note will be shown inline as is.

Click on the tool button, then click with the left mouse button where you wish to add the top-left corner of the note, then drag to place the bottom-right one. Enter the text of the note then click on the OK to save the note, Clear to clear the note's text, or Cancel to cancel note creation.

It is possible to define the Color, Opacity, Font, Align, and Border width for the note. Just right-click on the note icon created and select the Properties menu item.

Pop-up Note

Draws a multiline note. The note can be viewed by double clicking on the icon created in the document.

Click on the tool button, then click on the place in the document where the pop-up note should be added. Enter the text of pop-up note then click on the Close this note button in the top right corner of the pop-up window.

It is possible to define the Color, Opacity, and Icon for the note. Just right-click on the note icon created and select the Properties menu item.

Freehand Line

Draws free-form lines.

Click on the tool button, then click with the left mouse button and drag to draw the line.

It is possible to define the Color, Opacity, and Width for the line. Just right-click on the line created and select the Properties menu item.

Arrow (drop-down list)

Draws an arrow between two points.

Click on the tool button, then click with the left mouse button to place the starting point of the arrow, then drag to place the ending point of the line and click once more.

It is possible to define the Color, Opacity, Width, Line start, Line end, Leader line length, and Leader line extension length for the line. Just right-click on the line created and select the Properties menu item.

Straight line (drop-down list)

Draws a line between two points.

Click on the tool button, then click with the left mouse button to place the starting point of the line, then drag to place the ending point of the line and click once more.

It is possible to define the Color, Opacity, Width, Line start, Line end, Leader line length, and Leader line extension length for the line. Just right-click on the line created and select the Properties menu item.

Rectangle (drop-down list)

Draws a rectangle around the chosen area.

Click on the tool button, then click with the left mouse button to place the top-left corner of the rectangle, then drag to place the bottom-right one.

It is possible to define the Type (Rectangle or Ellipse), Color, Opacity, Shape fill (and its color), and Width for the border. Just right-click on the border created and select the Properties menu item.

Ellipse (drop-down list)

Draws an ellipse or rectangle around a chosen area.

Click on the tool button, then click with the left mouse button and hold to place the top-left corner of the circumscribed rectangle for the ellipse, then drag to place the bottom-right one.

It is possible to define the Type (Rectangle or Ellipse), Color, Opacity, Shape fill (and its color), and Width for the border. Just right-click on the border created and select the Properties menu item.

Polygon (drop-down list)

Draws a closed shape from three or more line segments. The corresponding note can be viewed by double clicking inside the polygon.

Click on the tool button, then click with the left mouse button to place the first vertex of the polygon, then drag to place of the second vertex. Proceed until you have drawn the whole polygon and connected back up with the first vertex. Click twice to add a note to the polygon. Enter the text of the note then click on the OK to save the note, Clear to clear the note, or Cancel to cancel note entry.

It is possible to define the Color, Opacity, Shape fill (and its color), and Width for the polygon. Just right-click on the polygon created and select the Properties menu item.

Stamp

Inserts a pre-defined shape into the document.

Click on the tool button to choose the stamp from the drop-down list then click with the left mouse button to place the stamp.

A single click just places a square stamp (useful for icons). To add a rectangular stamp you can click with the left mouse button and hold to place the top-left point, then drag to place the bottom-right one.

It is possible to define the Opacity and Stamp symbol for the stamp. Just right-click on the stamp icon created and select the Properties menu item.

Warning

This feature is experimental. Custom stamps inserted in PDF documents are not visible in PDF readers other than Okular.

These are the default annotations provided by Okular. Using the Annotations page of the configuration dialog you can add your own annotations like custom stamps, text markup or a geometrical shape with inner color to highlight regions etc.

Note

It is possible to add LATEX code into the text of annotations. To do so, add $$code$$ into the text of annotation, where code is any valid LATEX equation. Follow the instructions that will appear on the screen to render it using a LATEX distribution installed in your system.

It is possible to configure the selected tool using the annotation toolbar itself:

Button Option Name Description

Line width

Click on this button to choose the width from the drop-down list.

/

Annotation color

Click on this button to choose the color of the text or border of your annotation. You can chose one of the predefined colors or click on the Custom Color... item to open the color selection dialog.

Annotation fill color

Click on this button to choose the fill color of your annotation. You can chose one of the predefined colors or click on the Custom Color... item to open the color selection dialog.

Annotation opacity

Click on this button to choose the opacity of your annotation from the drop-down list (100% creates opaque annotations).

Annotation font

Click on this button to open the font selection dialog.

Advanced settings for the current annotation tool

Click on this button to open the general configuration dialog for your annotation.

There are three additional utility buttons on the annotation toolbar:

Button Description

Add the current annotation to the Quick Annotations menu on the main toolbar.

Note

You can use the default shortcuts from Alt+9 to Alt+0 to select the quick annotation actions any time you like, even with the annotation toolbar hidden.

When checked, keep the current annotation tool active after use.

Hide the annotation toolbar.

By pressing Shift you can constrain the angle of line and polygon annotations to 15° steps, and the ratio of shape annotations (e.g. Rectangle, Ellipse) to 1:1. You can also get a toolbar button from Configure Toolbars....

The contents of the Quick Annotations menu can be configured using the Annotations page of Okular configuration dialog. This page can be opened by clicking Quick Annotations button, then choosing Configure Annotations... from the pop-up menu.

Note

Activating the annotation toolbar will automatically switch to Browse Mode.

You can stop annotating any time by pressing the button of the annotation you are using again, or by pressing the Esc key.

The newly created annotation will have the author you set in the Annotations page in Okulars configuration dialog as its author. The Annotations page can also be used to configure the content of the annotations toolbar.

Removing annotations

To remove an annotation, first select the Browse tool (ToolsBrowse) then just click on it with the right mouse button, and select Delete or select an annotation using the left mouse button and press the Del key.

When removing the annotation, its window will be closed if it is open.

Editing annotations

To edit an annotation, first select the Browse tool (ToolsBrowse) then click on an annotation with the right mouse button and select Properties. A dialog will appear with the general annotation settings (like color and opacity, author, etc.) and the settings specific to that annotation type.

Annotation Property Dialog

To move an annotation, hold down the Ctrl key, move the mouse pointer on it and then start dragging with the left mouse button.

If you click with the left mouse button on an annotation, it gets selected. Resize handles appear on the selection rectangle. When the cursor is moved over one of the 8 resize handles on the corners or edges, the cursor shape changes to indicate the resize mode. Click anywhere else on the annotation to move it. Pressing Esc or clicking an area outside the annotation cancels a selection.

Resizing is only available for the Inline Note, Typewriter, Stamp and Ellipse annotation types.

Note

Some options may be disabled depending on the document's permissions (this typically only affects some PDF documents).