Hello Rajje, Just want to make sure, Are you trying to store your pdf in server C:\ folder or your local machine ?
If it is in server you are trying to store, you should be able to use C:\New folder\test.txt as long as Folder you mentioned in your path is created in C: before you use that in your transaction.
Hope this helps.
Thanks
Hari