open-xml-templating/docxtemplater

Make document readonly or password protected?

prachi-kays opened this issue · 4 comments

can anyone let me know how to make the generated docx document password protected or read only?

The meta module can do that, but it is a paid module :

https://docxtemplater.com/modules/meta/

Both password protection and read only are features of the meta module.

Can you please tell if we can make the some sections of the document read-only rather than making the whole document read-only?
We want to make some portion of the document as read-only not the whole document?
Is this possible with meta module? @edi9999

Hello @prachi-kays ,

It is currently only possible to make the full document read only with the meta module.

In the docx format, the document can be set as readonly and then some specific sections of the document can be set as editable.

If you bought the meta module, I could add the functionality of setting some sections as editable using the following syntax :

{:editable}
Some section
{:/editable}