Indesign Outline ALL fonts

Many thanks in advance for any help or advice given.

Why does some font text move when outlined with this script ie. text moves down from original position?

tell application "Adobe InDesign 2025"
	if not (exists document 1) then
		display dialog "No document open." buttons {"OK"}
		return
	end if
	
	display dialog "All fonts will be outlined"
	
	tell document 1
		repeat with aStory in stories
			try
				create outlines (text 1 of aStory)
			end try
		end repeat
	end tell
	
	display dialog "All text has been converted to outlines." buttons {"OK"}
end tell

It depends on the font. There’s no guarantee that converting to outlines will always produce an acceptable result.

Try to use Acrobat instead - convert InDesign file to PDF, then use the ‘convert to outlines’ profile in Acrobat preflight.

p.s.

Thanks Leo_r for taking the time to reply.

Using Acrobat to outline the fonts is an option I know, except it will not outline those fonts that have permissions to prevent this…

1 Like

In my limited testing, it seemed that text with an applied stroke would cause the movement issue. However, when using the Create Outlines menu option in ID, there were no issues for me. Even though it’s not entirely through AppleScript, I’m wondering if it would make sense to have AppleScript select all text boxes, and then trigger the outlining by sending a key press.