PDF Editing Issues

How to Move PDF Form Fields with Acrobat SDK and VB.NET

Algirdas JasaitisAlgirdas Jasaitis Nov 5, 2026 868 views

Question details

The user needs to programmatically reposition PDF form fields using a VB.NET application and the Acrobat SDK.

How to Move PDF Form Fields with Acrobat SDK and VB.NET
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.
Before you start

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.

Solution 1Recommended

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.

1
Download the Correct SDK

Navigate to the Adobe Developer portal and download the Acrobat DC SDK. Ensure it strictly matches your Acrobat Pro DC 2015 installation.

2
Reference the Interop API

In your VB.NET project, add references to the Adobe Acrobat COM objects (Acrobat.tlb) required for application automation.

3
Initialize the JSObject

Instantiate the Acrobat application and retrieve the JavaScript object model using the 'GetJSObject' method on the Acrobat Document (PDDoc) instance.

4
Execute Field Positioning Scripts

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.

Use the VB-to-JavaScript Bridge to Reposition Fields
SDK Documentation Reference: Refer to the 'JavaScript for Acrobat API Reference' included in your SDK documentation. It contains the exact syntax and coordinate system rules needed for the 'rect' array.
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite on your device.
  2. 2. Open Your PDF Document: Launch the application, click on 'Open', and select your PDF file containing the form fields.
  3. 3. Edit and Manage Forms: Navigate to the 'Edit' or 'Form' tabs to manually adjust, fill, or manage your PDF elements as needed.
Easily view, edit, and fill out PDF forms without needing complex developer tools.Fully compatible with Microsoft Office formats (Word, Excel, PowerPoint) and standard PDFs.Lightweight application that uses minimal system resources.Cost-effective and familiar user interface for seamless document management.
microsoft office alternative - wps office

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.