Does "text" mean the same thing in these two sentences?

They handed out the printed text of the mayor's speech.

There were more than a thousand words of text.
the same meaning