PDF Printing Issues

Fix an Acrobat PDF Form Block That Does Not Move When Printed

Huma Ashraf ChHuma Ashraf Ch Nov 19, 2026 868 views

Question details

The user needs a PDF form block to print in the position determined by custom table values.

Fix an Acrobat PDF Form Block That Does Not Move When Printed
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the form in its designer

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.

2
Add a prePrint script

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.

3
Check the script target

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.

4
Save and test in Acrobat

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.

Update the Form Block in the prePrint Event
Viewer support matters: Browser and mobile PDF viewers may not support dynamic form events or JavaScript consistently. Test in desktop Acrobat before diagnosing the script in another viewer.
Free Microsoft Office alternative

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.

View and print standard PDF documentsOpen and edit common Microsoft Office formats, including DOCX, XLSX, and PPTXUse a familiar interface for everyday office tasksWork with a free, lightweight office suite
microsoft office alternative - wps office

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.