Thanks for the reply. OK, so I just ran the example on my server:
[b]/phpdocx_pro/examples/intermediate/HeaderAndFooter.php[/b]
which creates this file:
[b]example_header_and_footer.docx[/b]
The document generates, but there is no image in the header. If I unzip the docx, the image is included in the folder /word/media/, it just doesn't appear in the document.
This is the debug output when running this example:
2012-12-12 10:18:55,368 INFO - Create a temp file to use as initial ZIP file. DOCX is a ZIP file.
2012-12-12 10:18:55,368 INFO - The language has been set.
2012-12-12 10:18:55,368 INFO - Add header to header document.
2012-12-12 10:18:55,368 INFO - Add image to header document.
2012-12-12 10:18:55,368 DEBUG - New ID 17160979 . Image header.
2012-12-12 10:18:55,368 INFO - Add image header word/media/image17160979.png.xml to DOCX.
2012-12-12 10:18:55,368 INFO - Add header to header document.
2012-12-12 10:18:55,368 INFO - Add footer to footer document.
2012-12-12 10:18:55,368 INFO - Add footer to footer document.
2012-12-12 10:18:55,368 INFO - Set DOCX name to: ../docx/example_header_and_footer.
2012-12-12 10:18:55,368 DEBUG - DOCX is a new file, not a template.
2012-12-12 10:18:55,368 DEBUG - There is a new footer, add it.
2012-12-12 10:18:55,368 DEBUG - New ID 17160980 . Footer.
2012-12-12 10:18:55,368 INFO - Add word/footer.xml content to DOCX file.
2012-12-12 10:18:55,368 DEBUG - There is a new header, add it.
2012-12-12 10:18:55,368 DEBUG - New ID 17160981 . Header.
2012-12-12 10:18:55,368 INFO - Add word/header.xml content to DOCX file.
2012-12-12 10:18:55,368 DEBUG - There is a header rels, add it.
2012-12-12 10:18:55,368 INFO - Add word/_rels/header.xml.rels content to DOCX file.
2012-12-12 10:18:55,368 DEBUG - Remove existing template tags.
2012-12-12 10:18:55,368 INFO - Add word/document.xml content to DOCX file.
2012-12-12 10:18:55,368 INFO - Close the zip.
2012-12-12 10:18:55,368 INFO - Copy DOCX file using a new name.
Please let me know if you need any further information - I'd really like to get this working as PHPDOCX looks potentially like a really useful library.
Thanks,
Seb