Latest : PDF Reference 1. PDF Reference 1. Acrobat SDK docs. These deprecated docs do not contain the latest information, and references to Unix, LiveCycle, and legacy features have not been removed.
Deprecated documentation For access to other versions of the developer documentation, contact acrobat-sdk-users adobe. Acrobat SDK. This SDK release introduces support for Windows bit. Details include: You must upgrade bit plugins to bit for them to work with the bit app.
It can also be used to execute code snippets to automate tasks in Acrobat and to analyze documents. It does not do everything needed to debug code, but it does provide a quick and easy way to perform most of the code development tasks you’ll ever need to do.
In this article, we’ll cover setting up and using this essential tool. Note: Special instructions for using the Console Window with Reader are provided at the end of the article. If this is your first time using the Console Window, you will need to enable and configure it from Acrobat’s Preferences settings.
However, these are still the settings used by the Console Window. If you want to change them you’ll need to temporarily enable the Acrobat editor to modify the settings, then reselect the external editor. In order for the settings to take affect you’ll need to close and reopen the Console Window. After these preferences have been set Figure 1 , you’re ready to start using the Console Window. The shortcut key can be a bit tricky on the Macintosh because there are slight differences between the keyboards on laptop and desktop systems.
So the keyboard shortcut is not always valid, but the tool button will always work. The tool panels are a new feature introduced in Acrobat X, so displaying the Console in earlier versions is slightly different. The Shortcut key is the same, but instead of a tool button, these earlier versions use a menu item.
The Console Window section of the Debugger is in the bottom portion of the dialog, in the area labeled View. In Figure 3, the View pull-down selection list is set to Console, meaning the Console Window is being shown. This area is also used to show the Script window for displaying runtime code when the debugger tools are enabled. In the figure, the Console is being shown immediately after Acrobat was started. The status messages are displayed by code built-into Acrobat and loaded on startup.
This ability is a huge time saver since it provides a fast and easy way to test out code before it’s placed into a scripting location where it will be more difficult to debug. To run the code, make sure the cursor is on the same line as the text. You can place it anywhere on the line as long as nothing is selected. Either of the two following actions will cause Acrobat to run the code. Acrobat always attempts to convert the result of an execution into text so that it can be displayed.
Sometimes the result of an operation is not as clean or obvious as a number. Let’s try something that doesn’t have such a well-defined result. Enter the following line in the Console Window and run it:.
The next line of example code is something that might be used in a real script. It assigns a simple addition to a variable named ‘sum’.
As shown in Figure 6, the return value from this line of code is “undefined. The calculation is executed and applied to the declared variable, sum. However, the first and primary operation on the line is the variable declaration, so this is the operation that returns a value to the Console Window.
Two uses for the Console Window besides code testing that immediately come to mind are automation and analysis. There are several functions in Acrobat for manipulating and for acquiring information from PDFs and Acrobat.
For example, suppose you wanted to know the exact border color of a text field so you could use the same color in another location. Assuming the current document has a field with the correct name on it, the following code displays the raw color value in the Console Window:.
The result of this operation is a color array. Remember, Acrobat attempts to convert all results into text. Arrays are converted to text by converting each individual array element into a text string, so the result would look something like the following line when it is displayed in the Console Window.
Suppose a document needs to be checked for branding purposes, i. The following code uses a simple loop to display this color info in the Console Window for manual inspection:. Because of the loop, this code cannot be executed one line at a time.
It has to be done all at once. Notice that in the loop there is a function called console. It’s in the fourth line. This function writes text to the Console Window and it will be discussed in the next section.
Here’s an example of a function that does not have an easy equivalent on the regular Acrobat menus and toolbars. Enter the following line into the Console Window and run it:. Acrobat will create a new, blank PDF document. This is perfect for trying out new ideas before applying them to a working document. The results of this operation are shown in Figure 7 below. Note that yet again, the result is something different.
Feel free to browse the Download Library and read about the tools available. If you don’t see something you wish were there Contact us and let us know.
After the script is installed and Acrobat is restarted, the Folder Level script will place a toolbar button on Acrobat’s “Add-Ons” toolbar. This toolbar button activates the automation script. Note: Automation Tool installation instructions and trouble shooting guide. It operates in both Acrobat and Reader, and on any version of Acrobat after version 7. It demonstrates using menu читать and trusted functions in an automation script.
Find Required Fields Have a large form and need to figure out which fields are already marked as Required? This tool finds and lists all required fields in a popup menu. Selecting a menu item places the keyboard focus on that field. A Great tool for any form developer. Good for fixing up scanned PDFs.
Сьюзан завороженно смотрела на захватывающую дух технику. Она смутно помнила, что для создания этого центра из земли пришлось извлечь 250 метрических тонн породы. Командный центр главного банка данных располагался на глубине шестидесяти с лишним метров от земной поверхности, что обеспечивало его неуязвимость даже в случае падения вакуумной или водородной бомбы.
На высокой рабочей платформе-подиуме в центре комнаты возвышался Джабба, как король, отдающий распоряжения своим подданным.