How to Round PDF Measurements to Whole Numbers in Adobe Acrobat
Question details
The user wants to know how to display measurement annotations in Adobe Acrobat without decimal places, specifically rounding values to whole numbers or multiples of five.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Creating or editing measurement annotations in a PDF document for architectural or engineering purposes.
- Observed behavior
- By default, Adobe Acrobat displays measurements with decimal places (e.g., 1017.86) and lacks a direct UI setting to round them to specific multiples or whole numbers.
Before proceeding, ensure that you have access to Adobe Acrobat Pro, as modifying PDF annotations using custom JavaScript requires advanced editing capabilities not available in the free Acrobat Reader.
Use JavaScript to Round Measurement Annotations
Since Adobe Acrobat lacks a built-in UI toggle for rounding measurements, you can use JavaScript and the util.printf method to modify the measurement values after they are created.
The util.printf method is a built-in Acrobat JavaScript function that can format decimal numbers. You can write a custom script that iterates through the annotations in your document and rounds the values to your desired precision.
To round to a multiple of five, you can combine standard JavaScript math functions (like Math.round) with the formatting method.
Open your PDF document in Adobe Acrobat Pro. Go to the 'Tools' menu, select 'JavaScript', and click on 'JavaScript Debugger' to open the console.
In the console, write a script to loop through the document's annotations. To round a value to the nearest multiple of five, use the logic: Math.round(value / 5) * 5.
Apply the util.printf method to strip any remaining decimal places. For example, use util.printf('%.0f', roundedValue) to ensure the number is formatted as a whole integer.
Highlight your code in the console and press Ctrl+Enter (Windows) or Cmd+Enter (Mac) to run the script. The measurement annotations in your PDF will update to display the rounded values.

Annotate and Manage PDFs Easily with WPS Office
If you frequently work with PDF documents and need a streamlined, user-friendly tool for annotations, reading, and editing, WPS Office provides a powerful built-in PDF editor. It offers an intuitive interface for managing your documents without the need for complex scripting.
- 1. Download and Install: Download WPS Office from the official website and install it on your device.
- 2. Open your PDF: Launch WPS Office and open your PDF document directly within the application.
- 3. Access Annotation Tools: Navigate to the 'Comment' tab to access a wide array of annotation tools, including shapes, text boxes, and highlights.
- 4. Customize Properties: Right-click any annotation to easily adjust its properties, color, and thickness from the intuitive side panel.

Frequently Asked Questions
Can I change the measurement scale ratio in Adobe Acrobat?
Yes, you can change the scale ratio by right-clicking while the measurement tool is active, selecting 'Change Scale Ratio and Precision', and setting your desired units (e.g., 1 inch = 1 foot).
Does Acrobat Reader support JavaScript for modifying annotations?
Acrobat Reader has very limited JavaScript support. To run custom console scripts that modify document annotations or utilize util.printf, you generally need the paid Adobe Acrobat Pro version.
Is there a plugin to automatically round PDF measurements?
While Adobe Acrobat does not have a native feature for automatic rounding, there are third-party plugins designed specifically for architecture and engineering workflows that add advanced measurement formatting options to the software.




