Illustrator bug: Script-generated rectangles show incorrect size (10× larger)
Hi Adobe team,
I’ve found a repeatable bug in Illustrator.
When I create a rectangle manually (e.g., 13000 mm × 2600 mm), Illustrator shows the correct size in the Properties panel.
But when I create the exact same rectangle through ExtendScript (JSX), Illustrator displays a size 10× larger (e.g., 130000 mm × 26000 mm), even though the script uses the correct mm → pt conversion (2.83464567).
The shape draws in the correct physical proportion, but Illustrator reports the wrong size.
I have tested:
• New documents (A4 and large canvas)
• Full preference reset (Ctrl+Alt+Shift)
• Scripts using both manual conversion and UnitValue()
• Documents with no imported EPS/PDF
• Clean installations
→ The issue persists only when creating shapes via scripting.
Manual rectangles = correct dimensions
Script-created rectangles = UI shows 10× incorrect dimensions
This looks like an internal scaling bug affecting script-generated pathItems.
Can you confirm if this is a known issue, or provide a workaround?
Thanks
-
Ezequiel, please share the test code you tried. Either paste it into a comment as text, or share the .js file (but rename it into something like .txt, to workaround UserVoice’s restrictions for scripts in attachments).