Participant
May 30, 2025 10:18 AM UTC
Question
How can I fit a frame to its content using Python code to automate the process?
- 4 replies
- 499 views
- Translate
My goal is to translate the original file (.indd) from English to Japanese. My Python code successfully translates the text and updates the fonts and language. However, I am encountering an issue where the translated text overflows the text frames (i.e., overset text).
Please advise if there’s any setting or attribute within the .idml file that can be updated using python code to automatically resize the text frame to fit the content.
Both original InDesign (.idml) and the Python-processed .idml file are attached for your reference.
