PHPOffice / PHPWord

A pure PHP library for reading and writing word processing documents
https://phpoffice.github.io/PHPWord/
Other
7.29k stars 2.7k forks source link

Writing settings in existing .docx files #445

Open rvanlaak opened 9 years ago

rvanlaak commented 9 years ago

We would like to use the PhpWord writer in order to modify /word/settings.xml of an existing file. The examples do not seem to have an example about writing settings. Could you please provide a quickstart for this?

We would like to change the TrackRevisions setting http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.trackrevisions(v=office.14).aspx

and the revisionView setting http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.revisionview(v=office.14).aspx

and set back the proofState attribute to dirty http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.proofstate(v=office.14).aspx

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/7022201-writing-settings-in-existing-docx-files?utm_campaign=plugin&utm_content=tracker%2F323108&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F323108&utm_medium=issues&utm_source=github).
github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue for you, please try to help by debugging it further and sharing your results. Thank you for your contributions.