Skip to content

adobe

This directory contains files for controlling Adobe Acrobat Reader DC.

The file adobe_acrobat_reader_dc.py defines the application that Talon will recognize. It specifies that the application is "Adobe Acrobat DC" or "Adobe Acrobat Reader DC" on Windows, using the executable names acrobat.exe or acrord32.exe. This file uses Talon's module system to define the application that the other files in this directory will be associated with.

adobe_acrobat_reader_dc.talon defines which tags to activate when the application is in focus. In this case, the user.tabs and user.pages tags are activated which makes the commands defined by those tags available.

adobe_acrobat_reader_dc_win.py contains the bulk of the functionality for controlling the application. It defines an application context that matches the adobe_acrobat_reader_dc application defined in adobe_acrobat_reader_dc.py on Windows. It then defines implementations for several actions:

  • app.tab_next and app.tab_previous: These are implemented with ctrl-tab and ctrl-shift-tab to cycle through open documents.
  • edit.zoom_in, edit.zoom_out, and edit.zoom_reset: These are implemented with ctrl-0, ctrl-1, and ctrl-2 respectively. The comments indicate that these keyboard shortcuts are used for the German version of the application and that the implementation should be updated to handle different languages.
  • user.page_current: This is implemented by opening a dialog to show the current page number using ctrl-shift-n, reading the selected text, and returning the number as an integer.
  • user.page_next and user.page_previous: These use ctrl-pagedown and ctrl-pageup to navigate pages.
  • user.page_jump: This opens the same dialog as user.page_current, inserts the desired page number, and activates the dialog using enter.
  • user.page_final: This goes to the last page of the document with end.
  • user.page_rotate_right and user.page_rotate_left: These rotate the page to the right or left by using shift-ctrl-0 and shift-ctrl-1 respectively.

These files work together to provide a set of commands for controlling Adobe Acrobat Reader DC on Windows. The .py files define the application context and actions, and the .talon file activates the necessary tags for these actions to be used.