Thank you for your inquiry.
To generate PDF file from dynamic data, please follow below steps
1- Use mail merge features with word documents to generated word document
from dynamic data. Please visit link Using with Mail Merge features with Word documents
2- After generating word document from dynamic data use Convert a Document
feature to convert word document to PDF. Please visit link Converting a Word Document to Images, Multipage TIFF, HTML, PDF or any other File Format using Cloud Storage
Regarding security issue, unfortunately it's difficult to give you
some exact recommendation on this issue. It is obviously related to some
security policy settings on your machine. The point
is that doesn't seem to be an Aspose.Word bug but something that should be
changed on your system configuration.
Please try and add this in web.config:
Hopefully this will solve security issue.
If you have any further questions, please feel free to share.
Aspose - File Format APIs.
Got a Complaint? File it!
Keep in touch! We're on Twitter and Facebook