I keep getting an error about the linkfile name
You cannot call a method on a null-valued expression.
At line:3 char:1
+ $field = $web.Fields.GetFieldByInternalName("LinkFilename")
Then I get this error
The property 'JSLink' cannot be found on this object. Verify that the property exists and can be set.
At line:4 char:1
+ $field.JSLink = "/_layouts/15/PdfFix.js"
Even though I confrim the file is there? Please help any one?