I'm sure that I'm doing wrong, but in my case it does not work
I have a document with 2 bookmarks ( sorry, cannot insert image og doc)
$docx = new CreateDocxFromTemplate(storage_path('bookmark.docx'));
try {
return $docx->getDocxPathQueryInfo([
'type' => 'bookmark'
]);
} catch (\Exception $e) {
Log::error($e->getMessage());
}
result
array:3 [â–¼
"elements" => DOMNodeList {#2358 â–¼
+length: 0
}
"length" => 0
"query" => "//w:body/w:bookmarkStart[1=1]"
]