We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
Thank you for your time.
Here is the bug encounter
I would like to read a summary in a word document.
<?php require __DIR__ . '/vendor/autoload.php'; use PhpOffice\PhpWord\Element\PreserveText; use Symfony\Component\HttpFoundation\JsonResponse; $phpWord = IOFactory::load($file->getRealPath()); $sections = $phpWord->getSections(); $paragraphs = []; foreach ($sections as $section) { foreach ($section->getElements() as $elementValue) { if($elementValue instanceof PreserveText) { $paragraphs[] = $elementValue->getText(); } } } return new JsonResponse($paragraphs);
I would like to retrieve the table of contents (if possible with the link) otherwise only the content.
When I try to retrieve the content, to at least display the table of contents, i have this result (JsonResponse):
"{ TOC \\o "1-1" \\h \\z \\u }"
Thanks !
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
Thank you for your time.
Here is the bug encounter
I would like to read a summary in a word document.
Steps to Reproduce
Expected
I would like to retrieve the table of contents (if possible with the link) otherwise only the content.
Current
When I try to retrieve the content, to at least display the table of contents, i have this result (JsonResponse):
"{ TOC \\o "1-1" \\h \\z \\u }"
Context
Thanks !
The text was updated successfully, but these errors were encountered: