I recently had to convert some PDF files to SVG, and did this by opening the PDF in Illustrator, and saving out to SVG.

The issue was that when Illustrator opened the pdf, many (but not all) text objects would be broken up into different text objects. For instance, the word "policy" wouldn't be one text object, but rather several text objects, "po", "l", "icy". There didn't seem to be any rhyme or reason to it.

How can I prevent this from happening?

2 Answers 2


Generally this happens to maintain appearance.

If the text interacts with other objects it may be broken up. If the font embedded in the PDF is a subset, rather than the entire font, it can be broken up in AI so that AI can insert the missing characters from the subset.

There's little you can do to stop this from happening other than working in and saving to the same version of Illustrator each time. And only saving a PDF as a separate file for output, not editing.

But you can correct it in Illustrator by selecting the text strings with the Direct Selection Tool or Selection Tool, Edit > Copy, then start a new point or area text and Edit > Paste. The pasted text will be one string rather than the pieces which were copied.

  • 5
    holy cats, I want to +10 this answer just for that solution. Illustrator has been making me nuts with this for YEARS. Commented Oct 21, 2013 at 9:43
  • 1
    @LaurenIpsum Did you see the answer below this? Even more amazing, really.
    – Krista K
    Commented Feb 20, 2018 at 19:03

If you'd like to merge broken text while preserving as much of the formatting, placement, paragraphs and other typography of the existing text as you can, rather than pasting into a newly created text area as plain text, you can try John Wundes' amazing Join Text Frames script.

It does exactly what it says on the tin: it merges snippets of text into one snippet of text, by making intelligent judgements based on where they are relative to each other:

  • It merges adjascent text snippets (e.g. from broken lines of text from PDFs) into single lines, with some control offered over how close is considered to be the same line.
  • It merges separate lines of text into one multi-line text object with the text in the right order (top to bottom), fixing broken paragraphs.
  • There's then an option to restore the original formatting of all the merged text. This can take a while, but it helpfully gives you pretty accurate estimates of how long it will take and the option to skip if it's not worth it.

It's really good!

Note that it only works on point text, not area text (fine here since PDFs are almost always point text). If you're trying to merge area text for any reason, you can convert it with the Kelso Cartography 'Make point text' script

It's also handy used in conjunction with AjarProductions' Convert to Text Area script (Kelso Cartography also have a similar script, see link above), if you want to turn broken text back in into proper text areas with auto-flowing paragraphs:

  1. Select the broken text snippets, run the Join Text Frames script
  2. Copy and paste the text into a text editor that lets you find/replace paragraph characters (e.g. InDesign, a coder's plain text editor, or maybe even something like (whispers) Word...)
  3. Find/replace away the unwanted end of line breaks. If there are many seperate paragraphs which you want to preserve, 1) are you sure you wouldn't be better off using InDesign? 2) you could do it like this:

    1. Find/replace two consecutive paragraph markers with some text placeholder that doesn't appear anywhere else in the text (e.g. \|\C.L.O.W.N.H.O.R.R.O.R/|/)
    2. Find/replace paragraph markers with nothing or spaces: turning it into one long line of text with occasional bursts of \|\C.L.O.W.N.H.O.R.R.O.R/|/
    3. Find/replace \|\C.L.O.W.N.H.O.R.R.O.R/|/ for a new paragraph character - which places one paragraph wherever two were before.
  4. Copy the text back in, and run the Convert to Text Area script on it. It's now one flowing text area with paragraph breaks in the right places.

Unfortunately, nothing can fix outlined text except for stopping it from being outlined, re-typing it, or trusting potentially dodgy OCR software.


Not the answer you're looking for? Browse other questions tagged or ask your own question.