How to Activate a Custom Preflight Fix from a Custom Check in Acrobat
Question details
The user wants to configure an Acrobat Preflight profile to read a PDF file name and automatically adjust the page boxes based on that specific text variable.

- Product
- Adobe Acrobat Pro
- Device & OS
- not provided
- Scenario
- Automating page-box geometry changes by using a custom Preflight check to detect file name variables.
- Observed behavior
- A custom check successfully detects the file name variable, but the custom fix for adjusting page-box geometry does not execute automatically based on the check's result.
Verify that you have Adobe Acrobat Pro installed, as the standard version does not include the Print Production tools required for accessing and editing Preflight profiles.
Configure the Preflight Fix with Explicit Criteria
Since custom checks and fixes are independent components in Preflight, you must define the execution parameters directly inside the fix rather than relying on the check to trigger it.
In Adobe Acrobat, a Preflight profile processes Custom Checks and Custom Fixes as separate tasks. A check is designed to flag issues or identify variables, but it cannot send an automated 'trigger' signal to activate a fix. To make a fix conditional, the conditions must be natively supported and configured within the Custom Fix settings.
Navigate to Tools > Print Production and click on the 'Preflight' option in the right-hand pane.
Select the specific Preflight Profile you are working on, click the 'Options' flyout menu, and choose 'Edit Profile'.
Navigate to the 'Custom Fixes' section (represented by the blue wrench icon) within your profile.
Instead of linking to a check, define explicit variables and conditions supported by the 'Set page geometry boxes' fix to control when the page-box adjustments are applied.

Automate Page Box Adjustments via JavaScript Action
If Preflight cannot natively link the file name to page geometry changes, use the Action Wizard and a JavaScript snippet to process the files instead.
Easily Adjust PDF Page Layouts with WPS Office
If setting up complex Acrobat Preflight variables and JavaScript actions is too time-consuming, WPS PDF offers a highly intuitive visual interface to quickly adjust, crop, and normalize page boxes across your documents without any coding.
- 1. Open your PDF: Launch WPS Office and open the target PDF document using the WPS PDF editor.
- 2. Navigate to Page Edit: Click on the 'Page' tab in the top navigation ribbon to access page management tools.
- 3. Adjust Page Size or Crop: Select 'Page Size' to explicitly set standard dimensions, or use the 'Crop Page' tool to manually adjust the geometry boxes of your document.
- 4. Apply and Save: Apply the changes to the current page or all pages in the document, then click 'Save' to finalize the new page boxes.

Frequently Asked Questions
Why doesn't my custom Preflight fix use the result of my custom check automatically?
In Acrobat Preflight, custom checks and custom fixes operate as independent components. A check is designed strictly to report compliance or identify variables, but it lacks the internal mechanism to trigger a separate fix component. Fixes must have their conditions defined directly within their own settings.
Can an Acrobat Action read the file name to apply edits?
Yes, but it typically requires using the 'Execute JavaScript' tool within the Action Wizard. A script can read the document property for the file name and execute specific PDF edits, such as page box adjustments, based on that string.
What is the difference between a Crop Box and a Media Box in a PDF?
The Media Box defines the absolute physical dimensions of the page medium (such as the actual paper size), while the Crop Box defines the region to which the page contents are clipped when displayed or printed. Preflight and JavaScript can manipulate both.




