It seems from freemarker docs that naming the file...
# advancedpdf
a
It seems from freemarker docs that naming the file .ftlx should resolve the issue, but it doesn't seem like that works in Netsuite