PDF Editing Issues

How to Display Selected 3D Model Part Properties in a PDF Form

Chanuka GeekiyanageChanuka Geekiyanage Nov 10, 2026 872 views

Question details

The user needs a method to show the name and description of a selected part of a 3D model inside a specific PDF form field without manually opening the full 3D model tree.

How to Display Selected 3D Model Part Properties in a PDF Form
Product
PDF Reader/Editor
Device & OS
not provided
Scenario
Interacting with embedded 3D models in a PDF document and extracting part metadata dynamically into text fields.
Observed behavior
Currently, viewing specific part details requires the user to open the entire 3D model tree, whereas the goal is to populate a form field automatically upon selecting a part.
Before you start

Ensure that your PDF viewer supports 3D annotations and JavaScript execution, and verify that the 3D model embedded in the document actually contains the necessary metadata properties.

Solution 1Recommended

Use Custom JavaScript to Retrieve 3D Node Properties

Implement a JavaScript action triggered by 3D model selection events to pass node data into a text field.

This method requires adding document-level or annotation-level custom JavaScript to your PDF. The script listens for a selection event within the 3D annotation, identifies the selected node, and pushes its properties into a designated PDF form field.

1
Create the Target Form Field

Add a new Text Field to your PDF document using your PDF editor's form tools. Name this field specifically (e.g., 'PartDescriptionField') so you can reference it in your script.

2
Access the 3D Annotation Properties

Right-click the embedded 3D model and open its Properties, or open the JavaScript console for document-level scripts depending on your PDF software.

3
Write the Selection Script

Add a script that uses the context3D object. Bind a function to the selection event that retrieves the selected node's properties (e.g., event.node.name and event.node.description), then sets the value of 'PartDescriptionField' to display this data.

4
Enable JavaScript Execution

Ensure that JavaScript is enabled in your PDF reader's security preferences (usually found in Edit > Preferences > JavaScript) so the script can execute properly when a user clicks a 3D part.

Use Custom JavaScript to Retrieve 3D Node Properties
Format Compatibility: Not all 3D formats retain node descriptions when converted to a 3D PDF. Ensure the authoring software exports metadata correctly into the U3D or PRC format.
Free Microsoft Office alternative

Edit and Manage PDF Documents with WPS Office

While advanced 3D JavaScript modeling requires specialized 3D PDF software, WPS Office provides a robust, lightweight, and free solution for all your everyday PDF editing, form filling, and document conversion needs.

  1. 1. Open your PDF in WPS Office: Launch WPS Office and open the PDF document you want to read or edit.
  2. 2. Access the Form tools: Navigate to the Form tab to interact with fillable text fields, checkboxes, and drop-down menus seamlessly.
  3. 3. Save and Share: Once your document is filled or edited, save your progress or export it directly without losing formatting.
Easily edit PDF text, images, and fillable formsHighly compatible with Adobe PDF standards and Microsoft Office formatsLightweight application that runs smoothly on standard devicesSeamlessly convert between PDF, Word, Excel, and PowerPoint
microsoft office alternative - wps office

Frequently Asked Questions

Why isn't my JavaScript running when I click a 3D model part?

Your PDF viewer may have JavaScript disabled for security reasons. Check your application preferences and ensure that JavaScript execution is turned on.

Can I view 3D PDF properties on mobile devices?

Most standard mobile PDF readers do not support complex 3D annotations or the JavaScript required to interact with their model trees. You typically need a desktop PDF editor to utilize this feature fully.

Does WPS PDF support 3D PDF viewing?

WPS PDF is excellent for standard PDF viewing, editing, and form filling. However, interacting with embedded U3D/PRC 3D models and their custom JavaScript events usually requires specialized 3D PDF viewing software.