Flattened PDF files

Hi,


I am using a trial version of Aspose.Words for .NET.
First off, I should mention that it is a pretty impressive product. Easy to integrate and Easy to use.

I have a question though.
As per the code sample below, I am using the Document object to create a PDF document after the mail merge fields are populated with the values.

Document doc = new Document(@“C:\SampleTemplate.docx”);
doc.MailMerge.Execute(
new string[] { “FieldGlobal”, “FieldOne”, “FieldTwo”, “FieldThree” },
new object[] { “ValueGlobal”, “ValueOne”, “ValueTwo”, “ValueThree” });

doc.Save(@“C:\Sample.pdf”, SaveFormat.Pdf);

I need to find out if the PDF generated above is a flattened PDF.
How should I know that it is a flattened pdf, is there a property or formatting needed to be done after the fact?

Thanks,
Vijay

Hi Vijay,

Thanks for your inquiry. Aspose.Words does not provide any API to check Pdf either it is flattened Pdf or not. Aspose.Words saves Word document to flattened Pdf using following line of code.

doc.Save(@“C:\Sample.pdf”, SaveFormat.Pdf);