How to Move PDF Form Fields with Acrobat SDK and VB.NET
Question details
The user needs to programmatically reposition PDF form fields using a VB.NET application and the Acrobat SDK.

- Product
- Adobe Acrobat Pro DC
- Device & OS
- not provided
- Scenario
- Automating the creation and precise placement of PDF form fields through a VB.NET project.
- Observed behavior
- The application can successfully edit PDFs and add form fields, but it fails to reposition them or set their placement coordinates automatically.
Verify that your installed Acrobat DC SDK version matches your Adobe Acrobat Pro DC 2015 installation, and ensure you have the necessary automation permissions enabled in your environment.
Use the VB-to-JavaScript Bridge to Reposition Fields
Since native VB.NET methods lack direct field layout control, use the Acrobat DC SDK's JavaScript methods via the VB-to-JS bridge to define exact field coordinates.
The Acrobat SDK does not natively expose all layout and repositioning properties directly to COM/VB.NET objects. Instead, it relies on its powerful JavaScript engine for detailed user interface and field manipulation.
By retrieving the JavaScript object model inside your VB.NET application, you can execute JavaScript commands that modify field properties (such as the 'rect' property) to change their position dynamically.
Navigate to the Adobe Developer portal and download the Acrobat DC SDK. Ensure it strictly matches your Acrobat Pro DC 2015 installation.
In your VB.NET project, add references to the Adobe Acrobat COM objects (Acrobat.tlb) required for application automation.
Instantiate the Acrobat application and retrieve the JavaScript object model using the 'GetJSObject' method on the Acrobat Document (PDDoc) instance.
Use the JSObject to call the JavaScript 'addField' method or access an existing field's 'rect' property array. Define the exact coordinates (upper-left and lower-right corners) to reposition the field.

Manage PDF Forms and Documents Easily with WPS Office
While programmatic automation requires specialized developer SDKs, everyday users can easily create, view, edit, and fill PDF forms manually using WPS Office. It provides a highly compatible and user-friendly interface for handling PDFs alongside traditional Office documents.
- 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite on your device.
- 2. Open Your PDF Document: Launch the application, click on 'Open', and select your PDF file containing the form fields.
- 3. Edit and Manage Forms: Navigate to the 'Edit' or 'Form' tabs to manually adjust, fill, or manage your PDF elements as needed.

Frequently Asked Questions
Can I move PDF form fields using only VB.NET without using JavaScript?
No, the Acrobat SDK does not natively expose all detailed layout and repositioning properties directly to VB.NET COM objects. You must pass JavaScript functions through the JSObject bridge to modify specific layout properties like the 'rect' array.
Why isn't my VB.NET application recognizing the Acrobat SDK commands?
This commonly happens if you are using an SDK version that does not match your installed Acrobat version. Ensure you have the specific Acrobat DC SDK if you are running Acrobat Pro DC, as older SDKs will fail to authenticate or map the objects.
Where can I find the exact JavaScript methods for placing PDF fields?
The detailed JavaScript methods for creating and positioning fields are thoroughly documented in the 'JavaScript for Acrobat API Reference'. This document is included within the Acrobat DC SDK package available from Adobe.




