-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
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
Problem: read header and footer in documents #293
Comments
I have a PHP code: <?php
if(isset($_FILES['document'])){
include 'fileupload.php';
$source = 'upload/'.$_FILES['document']['name'];
echo date('H:i:s'), " Reading contents from `{$source}`", EOL;
$phpWord = \PhpOffice\PhpWord\IOFactory::load($source);
print_r($phpWord);
}
( ! ) Fatal error: Uncaught exception 'PhpOffice\PhpWord\Exception\InvalidImageException' in C:\wamp\www\src\PhpWord\Element\Image.php on line 371 ( ! ) PhpOffice\PhpWord\Exception\InvalidImageException: in C:\wamp\www\src\PhpWord\Element\Image.php on line 371 Call Stack Time Memory Function Location 1 0.0006 248248 {main}( ) ..\Sample_32_Coig.php:0 |
|
Okey, but how to get footer and header tekst and settings and assign to array or parse to html? |
Good question. From the object model, you can use |
Yes I don't know how I can get header and footer also how I can get values? |
Hello everyone, include_once 'Sample_Header.php'; Please send me the code. Please help me out from this problem Thank youRajesh babu |
I Get this error when replacing the attached docx with the code, even when fixing it, the images gets lost in saving the file: // Read contents echo date('H:i:s'), " Reading contents from // Save file Warning: Division by zero in D:\Work\Test\PHPWebProject1\PHPWebProject1\vendor\phpoffice\phpword\src\PhpWord\Writer\ODText\Style\Paragraph.php on line 41 |
Hi |
Could we have a HTML writer that outputs as pages, with headers and footers? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
How to get header and footer in documents and parse to html?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: