Using Document Template for generating PDF File

Hi, I am using Document Template for generating the PDF file. But I am facing some errors in my console while running application. I have attached related documents. While generating the pdf I am getting an error message that "An error occurred. Contact your system administrator”. How to resolve this issue.
1 answers

You’re creating a System.FileDocument object and you can’t download that. You should create a specialization in one of your module domain models and assign access privileges. See also, steps 4.1 – 4.5.