Settings: Tools, Extract Text
After selecting text from the original PDF document, and right clicking the selection, the Extract Text context menu appears to perform various tasks with the selected text. You can define your own commands to appear in the context menu.
Extract Text Commands
These commands appear in the context menu that appears after right clicking text selected with the Extract Text tool.
You can edit Caption, Command and Parameters for each command.
The Caption will appear in the context menu.
The Command will execute when you click the entry in the Extract Text context menu. A command can either be a URL starting with http:// or https://, or a path to a locally installed program. If command is a program path, Parameters will be added to the command line when calling that program.
Managing Commands
To add a new command, click the Plus symbol and enter Caption and Command. To remove a command, select the command and click the Minus symbol. To re-order commands, select a command and click the Up or Down button.
Examples and Syntax
These commands usually come predefined with PDF Annotator.
Caption |
Command |
Parameters |
&Search (Google) |
http://www.google.com/search?q=%TEXT% |
|
&Translate (Google) |
http://translate.google.com/#auto/%SYSLANGUAGE%/%TEXT% |
|
&Wikipedia |
http://%SYSLANGUAGE%.wikipedia.org/wiki/%TEXT% |
|
&Notepad |
%WinDir%\notepad.exe |
%TEXTFILE% |
The ampersand (&) symbol can be set in front of any character in the Caption to make this character a keyboard shortcut, which will be available when the Extract Text context menu is open.
Command and Parameters may include a number of placeholders, which will be replaced automatically when executing the command. Possible placeholders are:
Placeholder |
Explanation |
%TEXT% |
Extracted text |
%TEXTFILE% |
File name of a temporary that contains the extracted text |
%LANGUAGE% |
Current language used by PDF Annotator (EN, DE or FR) |
%SYSLANGUAGE% |
Current language used by Windows |
%PAGE% |
Page number |
%PAGENO% |
Absolute page number |
%FILENAME% |
Document file name without path (Example: Document.pdf) |
%FILEDIR% |
Document file path without file name (Example: C:\Path) |
%FILEPATH% |
Document file path with file name (Example: C:\Path\Document.pdf) |
Show commands menu immediately
Instead of right clicking selected text to invoke the context menu, you can enable the Show commands menu immediately after selecting text option.
See also