Skip to main content
Inspiring
July 13, 2015
Answered

Convert Text-Layer to Outline

  • July 13, 2015
  • 1 reply
  • 5027 views

Hello Community,

can someone please tell me, if there´s a Script to convert a Layer of Text to Outlines?

I need it for wrapping text around a diagram, made with FF Chartwell

For me, it´s also necessary to open release the compound paths and activate text-wrapping to automate it for several documents. So one script that would do the trick will be appreciated.

If someone can point me to the right direction, it would be great!

Greetings

Markus

This topic has been closed for replies.
Correct answer markusl75206360

Sorry guys,

i´m still lost. I´ve tried to apply an object style (with text wrapping attributes) now, but it gives me an error message, my object style "umfliessen" couldn´t be read. Maybe I have to refer it at a different position (not at line 22)?

tell application "Adobe InDesign CC 2015"

  tell active document

      tell layer "diagramm_balken_auto"

            repeat with x from (count every text frame) to 1 by -1

                 tell text frame x    

                      try

                           create outlines with delete original    

                      end try

                 end tell

            end repeat

       end tell

       tell layer "diagramm_balken_auto"

            repeat with x from (count every polygon) to 1 by -1

                 tell polygon x

                      try

                           release compound path    

                      end try

                 end tell

            end repeat

       end tell

       tell layer "diagramm_balken_auto"

            set objStyle to object style "umfliessen"

                 repeat with x from (count every item) to 1 by -1

                      tell item x

                           try

                                apply object style using objStyle

                           end try

                      end tell

                 end repeat    

          end tell

     end tell

end tell

Also found the correct way of posting code. Sorry for the past entries!

I´m still hoping to get it done with some help of yours.

Thanks,

Markus


I found the solution!

tell application "Adobe InDesign CC 2015"

  tell active document

       tell layer "diagramm_balken_auto"

            repeat with x from (count every text frame) to 1 by -1

                 tell text frame x

                      try

                           create outlines with delete original

                      end try

                 end tell

            end repeat

            end tell

            tell layer "diagramm_balken_auto"

                 repeat with x from (count every polygon) to 1 by -1

                     tell polygon x

                          try    

                               release compound path

                          end try

                      end tell

                 end repeat

            end tell

            tell layer "diagramm_balken_auto"

                 repeat with y from (count every spline item) to 1 by -1

                      tell spline item y

                           set text wrap mode of text wrap preferences to bounding box text wrap

                      end tell

                 end repeat

            end tell

     end tell

end tell

1 reply

Willi Adelberger
Community Expert
Community Expert
July 13, 2015

Export it as PDF, in Acrobat Pro in Print Production > Preflieght convert it to Outlines. Never do such a thing in InDesign.

Inspiring
July 13, 2015

It MUST be done in InDesign, as I need to wrap text around the bars.

I know about exporting vectorized PDFs on-the-fly and converting-stuff in illustrator, acrobat and photoshop.

But in this case I need single-objects in InDesign.

Thanks!

Markus

Community Expert
July 13, 2015

Select the text frames and go to Type>Create Outlines

What is it you're doing exactly? What does "wrap around the bars" mean?