Fix an Acrobat PDF Form Block That Does Not Move When Printed
Question details
The user needs a PDF form block to print in the position determined by custom table values.

- Product
- Adobe Acrobat PDF forms
- Device & OS
- not provided
- Scenario
- A docReady script positions a form block using custom table values before the form is printed.
- Observed behavior
- Print preview shows the block in its updated position, but the printed output places it in its original position.
Open the form in the designer used to create it and identify the field or subform representing the movable block. Check that the custom table values are available before printing.
Update the Form Block in the prePrint Event
Use prePrint to apply the block position immediately before Acrobat starts printing.
The docReady event runs when the form is ready, while prePrint is intended for changes needed just before printing. Event availability depends on the form type and the application used to view it.
Open the source form in its form designer, such as AEM Forms Designer for an XFA form, and select the field or subform that contains the block.
In the designer's script editor, select the prePrint event and use the existing JavaScript logic to read the custom table values and update the block's position.
Review the script's field or subform reference and confirm it points to the block that must move. Make sure the values used to calculate its position are available when prePrint runs.
Save the form, open it in desktop Adobe Acrobat, and choose File > Print. Check the printed page or print to a PDF for comparison with the preview.

View and Print PDFs with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for everyday document work. It supports common Microsoft Office formats for easier migration and includes PDF viewing and printing tools. It does not fix Acrobat-specific form scripts or guarantee support for dynamic form events.

Frequently Asked Questions
Why does the block move in print preview but not on the printed page?
The print process may not use the position set by the docReady script as expected. Apply the position in the form's prePrint event and verify that the script targets the correct field or subform.
Where do I add the prePrint script?
Open the source form in its form designer, select the relevant field or subform, and choose prePrint in the script editor. Event support depends on the form type.
Can I test the form in a browser PDF viewer?
For the most reliable test, open the form in desktop Adobe Acrobat and use File > Print. Browser viewers may not support the form's JavaScript or dynamic events.
What should I check if the block still prints in its original position?
In the form designer's script editor, check the prePrint script's reference to the block and confirm that the custom table values are available when the event runs. Then save the form and retest in desktop Acrobat.




