In the initialize event for the text field, add the following client-side JavaScript:
this.rawValue = event.target.documentFileName;
Note, when you preview the PDF in Designer you will see an odd file name like _13fs18f3v9eeb3qs.pdf. When the PDF is opened in Reader or Acrobat you will see the real file name.