Hi
iam using phpdocx-premium-12.5. i need to extract data as plain text from the header/footer.
iam able to get document data as text from document using
\Phpdocx\Create\CreateDocx::DOCX2TXT(..)
Hi
iam using phpdocx-premium-12.5. i need to extract data as plain text from the header/footer.
iam able to get document data as text from document using
\Phpdocx\Create\CreateDocx::DOCX2TXT(..)
Hello,
You can use Indexer and getWordContents to extract contents and information from a DOCX
Regards.
Thanks,
i use it like this to get text like the one i get it from the body
$docx = new \Phpdocx\Create\CreateDocxFromTemplate($documentPath);
$headerText = implode(' ', $docx->getWordContents(['target' => 'header']));
i get the data, is that correct?
Hello,
Your username doesn't have any license tied, please send to contact[at]phpdocx.com the username or email of the user that purchased the license you are using.
About your question, each method is focused on specific tasks and may not return the same exact outputs:
We recommend you check the samples included in the package, that details how to use each method and you can use the method that best suits your needs.
Regards.