Can you try with just hard coding the name first. Something like
concat("c:\", "myFile","pdf")
then the slash might give you some trouble. Try to use a front slash instead like
concat("c:/", "myFile","pdf")
If this works, then we know the problem is just with the getDocAttribute function.
Jasmin