DocX Editor author for track changes

With the latest DocX editor enabled in webviewer, in review mode, we do not see a way to implement the author that is making the changes.

We see author for annotations, but thats not the same as track changes within the new docx review mode, right?

If someone opens a document in webviewer DocX review mode, makes changes, it’ll always show ‘guest’ as the author.

How can we apply the current users name to changes made?

1 Like

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


The issue you’re encountering with the author name defaulting to “guest” in the DOCX Editor’s review mode is common when the user information isn’t explicitly set. By default, the DOCX Editor uses “guest” as the author for tracked changes if no other information is provided.

Some things you can try:

  • Use the setUser API to specify the current user’s name before any changes are made. This ensures that all tracked changes are attributed to the correct author.

  • Ensure that the setUser function is called when the document is loaded, such as in the documentLoaded event, to set the author name for the session.

  • Verify that the user information is correctly passed and set before any document edits are initiated.



Here are some resources that might help you:


Hopefully, this helps you solve your problem while you wait for a human to get back to you.

1 Like

Hello Jaffster,

Thank you for contacting WebViewer Forums.

To set the author for DOCX Editor, the annotationUser option can be set when initializing WebViewer. For example:

WebViewer(
      {
        path: '/webviewer/lib',
        annotationUser: 'NewName',
        enableOfficeEditing: true,

Please see this documentation for more details: Annotation Permissions in JavaScript PDF Viewer | Apryse documentation

Regards,
Luke

1 Like

Thanks, we got it half working, still some issues in consistency within the session but its getting there.

1 Like