totravel / minidocx

Fast and easy to use C++ library that creates or modifies Microsoft Word files without installing Word.
MIT License
83 stars 26 forks source link

How to protect (read-only) word document using minidocs? #11

Closed GermanAizek closed 7 months ago

GermanAizek commented 7 months ago

@totravel, I don't see such method, is there a way to do it?

totravel commented 7 months ago

minidocx now supports document settings. To make the document read-only, call the SetReadOnly() method before saving the document:

doc.SetReadOnly();
doc.Save();
GermanAizek commented 7 months ago

Wow, many thanks!