Can Acrobat JavaScript Read Coordinates from a PDF 3D Model?
Question details
The user wants to extract the original X, Y, and Z coordinates and scale from a U3D model embedded within a PDF 3D annotation using Acrobat JavaScript.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Attempting to retrieve original dimensions and positioning of a 3D model via scripts because the model appears to change scale and position automatically after placement.
- Observed behavior
- Acrobat JavaScript lacks a straightforward native API to recover the original modeling coordinates and scale directly from an embedded U3D file.
Ensure you have access to the original 3D CAD application used to design the U3D model, as precise coordinate extraction is best handled natively before the file is embedded into the PDF document.
Extract Coordinates Before PDF Embedding
The most reliable method is to retrieve the X, Y, and Z data directly from the native CAD or 3D modeling software before converting it to a U3D format.
Because the conversion process to U3D and subsequent placement inside a PDF alters the coordinate system and bounding box scale, attempting to reverse-engineer these values via Acrobat JavaScript is highly unreliable.
Launch your original 3D or CAD software and open the source model file.
Use the software's native measurement, reporting, or scripting tools to export the exact coordinates, bounding boxes, and scale data.
If this data needs to be accessible within the PDF, attach it as a separate text file or embed it into standard PDF form fields rather than relying on 3D annotation JavaScript.

Utilize a Specialized PDF 3D SDK
If you must extract coordinate data from an already embedded model, standard Acrobat JavaScript is insufficient. You will need a third-party SDK designed to parse internal 3D streams.
Looking for a Lightweight PDF and Document Editor?
While extracting complex 3D model coordinates may require specialized engineering tools, handling your everyday PDF and document tasks shouldn't be complicated. WPS Office provides a robust, free suite for viewing, editing, and managing PDFs alongside standard office files.
- 1. Download WPS Office: Visit the official WPS website and download the installation package.
- 2. Install the Software: Run the installer and follow the quick setup wizard to install the suite on your device.
- 3. Manage Your PDFs: Open your PDF files with WPS Office to access a comprehensive set of reading, editing, and annotation tools.

Frequently Asked Questions
Why does my 3D model scale incorrectly when inserted into a PDF?
When converting CAD models to U3D or PRC formats for PDF embedding, the original unit scales are often overridden by the target document's bounding box and internal conversion unit definitions, causing discrepancies in perceived scale.
Can Acrobat JavaScript modify the 3D model inside the PDF?
While Acrobat JavaScript can interact with annotations to change camera views, adjust lighting, or trigger specific animations, it cannot fundamentally alter the internal geometry or raw vertex data of the embedded U3D file itself.
Are there alternative formats to U3D for embedding 3D data in a PDF?
Yes, PRC (Product Representation Compact) is another highly supported format for standard PDFs. PRC is generally better suited for engineering purposes because it can retain precise geometric data and original CAD coordinates much better than U3D.




