You need to enter that attribute name manually. I see there are some ER's present already requesting similar functionality, including one to use attribute (in the default dataset name while exporting PDF) as you have asked.
Yes. While entering the attribute name manually, sometimes it is possible for mistyping.
To overcome this, better we have the option for selecting which type of attribute to be displayed while exporting PDF.