Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ class SuperConverter {
getDocumentInternalId() {
const settings = this.convertedXml['word/settings.xml'];
if (!settings) return '';
if (!settings.elements[0]?.elements) return '';

// New versions of Word will have w15:docId
// It's possible to have w14:docId as well but Word(2013 and later) will convert it automatically when document opened
const w15DocId = settings.elements[0].elements.find((el) => el.name === 'w15:docId');
Expand Down