Not allowing editing in generated .doc

Hello there,
Is it possible not to allow editing in a geneated .doc ?
Thanks,
Ben

Hi
Thanks for your interest in Aspose.Words. Yes of course you can make the document to be read only. Please try using the following code:
doc.Protect(ProtectionType.ReadOnly);
Also see the following links to learn more about document protecting.
https://docs.aspose.com/words/net/protect-or-encrypt-a-document/
https://reference.aspose.com/words/net/aspose.words/protectiontype/
Best regards.