You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my logic i need to read file, after that i need to add new paragraph in it and save new file with added format. When i do it then images styles are broken.
Current Behavior
What is the current behavior?
Context
Please fill in your environment information:
php version 8
The text was updated successfully, but these errors were encountered:
Describe the Bug
A clear and concise description of what the bug is.
Steps to Reproduce
Please provide a code sample that reproduces the issue.
addSection(); $section->addText( $article_disclosure ); // XML Writer compatibility \PhpOffice\PhpWord\Settings::setCompatibility(false); \PhpOffice\PhpWord\Settings::setOutputEscapingEnabled(true); $obj_writer = \PhpOffice\PhpWord\IOFactory::createWriter( $phpWord ); $upload_dir = wp_upload_dir(); $file_url = $upload_dir['path'] . '/'. 'file-saved' . '.docx'; $file_path = $upload_dir['url'] . '/'. 'file-saved' . '.docx'; ob_clean(); $obj_writer->save( $file_url ); ?>Expected Behavior
In my logic i need to read file, after that i need to add new paragraph in it and save new file with added format. When i do it then images styles are broken.
Current Behavior
What is the current behavior?
Context
Please fill in your environment information:
The text was updated successfully, but these errors were encountered: